User Tools

Site Tools


preview:api:level

This is an old revision of the document!


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 ComponentType

find

COMPONENT find(componentType [, enabledOnly])

Name Type Description
componentType ComponentType
enabledOnly boolean

COMPONENT find(id, componentType)

Name Type Description
id Guid
componentType ComponentType

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 PhysicsRayResult Out argument
flag integer

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

Name Type Description
from vec3f
to vec3f
outResult PhysicsRayResult Out argument
flag integer
preview/api/level.1579128712.txt.gz · Last modified: 2020/01/15 17:51 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki