User Tools

Site Tools


api:level

LEVEL

Abstract class
Category: Data

Functions


getGame

GAME getGame()


createObject

GAME_OBJECT createObject([objectSetuperCallback])

Name Type Description
objectSetuperCallback function<void(GAME_OBJECT)>

GAME_OBJECT createObject(prefab [, position [, orientation [, objectSetuperCallback]]])

Name Type Description
prefab PREFAB
position vec3f
orientation quaternion
objectSetuperCallback function<void(GAME_OBJECT)>

GAME_OBJECT createObject(prefab, objectSetuperCallback)

Name Type Description
prefab PREFAB
objectSetuperCallback function<void(GAME_OBJECT)>

getDeltaTime

float getDeltaTime()


getUnscaledDeltaTime

float getUnscaledDeltaTime()


getTimeScale

float getTimeScale()


registerRuntimeAsset

boolean registerRuntimeAsset(asset)

Name Type Description
asset ASSET

unregisterRuntimeAsset

boolean unregisterRuntimeAsset(asset)

Name Type Description
asset ASSET

getComponentManager

COMPONENT_MANAGER getComponentManager(componentType)

Name Type Description
componentType Component Type

find

COMPONENT find(componentType [, enabledOnly])

Name Type Description
componentType Component Type
enabledOnly boolean

COMPONENT find(id, componentType)

Name Type Description
id Guid
componentType Component Type

GAME_OBJECT find(id)

Name Type Description
id Guid

GAME_OBJECT find(name)

Name Type Description
name string

createPickingLine

LINE createPickingLine(screenPos)

Name Type Description
screenPos vec2f

LINE createPickingLine(screenPos)

Name Type Description
screenPos vec2i

pick

boolean pick(line, outPosition, outObject [, flag [, recursiveFlag]])

Name Type Description
line LINE
outPosition vec3f Out argument
outObject GAME_OBJECT Out argument
flag integer
recursiveFlag boolean

boolean pick(screenPosition, outPosition, outObject [, flag [, recursiveFlag]])

Name Type Description
screenPosition vec2i
outPosition vec3f Out argument
outObject GAME_OBJECT Out argument
flag integer
recursiveFlag boolean

pickObject

GAME_OBJECT pickObject(line [, flag [, recursiveFlag]])

Name Type Description
line LINE
flag integer
recursiveFlag boolean

GAME_OBJECT pickObject(screenPosition [, flag [, recursiveFlag]])

Name Type Description
screenPosition vec2i
flag integer
recursiveFlag boolean

pickPosition

boolean pickPosition(line, outPosition [, flag [, recursiveFlag]])

Name Type Description
line LINE
outPosition vec3f Out argument
flag integer
recursiveFlag boolean

boolean pickPosition(screenPosition, outPosition [, flag [, recursiveFlag]])

Name Type Description
screenPosition vec2i
outPosition vec3f Out argument
flag integer
recursiveFlag boolean

worldToScreenCoordinates

boolean worldToScreenCoordinates(worldPosition, outScreenPosition)

Name Type Description
worldPosition vec3f
outScreenPosition vec2f Out argument

vec2f worldToScreenCoordinates(worldPosition)

Name Type Description
worldPosition vec3f

isVisibleOnScreen

boolean isVisibleOnScreen(worldPosition)

Name Type Description
worldPosition vec3f

rayCast

boolean rayCast(screenPosition, distance, outResult [, flag])

Name Type Description
screenPosition vec2i
distance float
outResult PHYSICS_RAY_RESULT Out argument
flag integer

boolean rayCast(from, to, outResult [, flag])

Name Type Description
from vec3f
to vec3f
outResult PHYSICS_RAY_RESULT Out argument
flag integer

Events


EVT_UPDATE

EVT_UPDATE(float)

api/level.txt · Last modified: 2020/10/22 10:16 (external edit)