Cog Files


World Reference


These are the world controling verbs

GetGravity
GetCeilingSkyOffset
GetHorizonSkyOffset
GetSectorCount
GetSurfaceCount
GetThingCount
GetThingTemplateCount
SetCeilingSkyOffset
SetGravity
SetHorizonSkyOffset


GetGravity() Info

Gets the world Gravity

Use: gravity = GetGravity(); returns a flex


GetCeilingSkyOffset()

Gets the world CeilingSky offset

Use: (flex u,flex v ,0.0) = GetCeilingSkyOffset(); returns u,v offsets in vector form


GetHorizonSkyOffset()

Gets the world HorizonSky offset

Use: (flex u,flex v ,0.0) = GetHorizonSkyOffset(); returns u,v offsets in vector form


GetSectorCount() Info

Get the world sector count

Use: count = GetSectorCount(); returns int


GetSurfaceCount() Info

Get the world surface count.

Use: count = GetSurfaceCount(); returns int


GetThingCount() Info

Get world thing count

Use: count = GetThingCount(); returns int


GetThingTemplateCount()Info

Gets thing template count.

Use: count = GetThingTemplateCount(thing); returns int


SetCeilingSkyOffset()

Sets world CeingSkyOffset

Use: SetCeilingSkyOffset(flex u,flex v, 0.0); send as vector x,y


SetGravity() Control

Sets the world gravity

Use: SetGravity(flex);


SetHorizonSkyOffset()

Sets world HorizonSkyOffset

Use: SetHorizonSkyOffset(flex u, flex v, 0.0); send as vector x,y