3D Lingo Dictionary > T-Z > worldPosition |
![]() ![]() ![]() |
worldPosition
Syntax
member(whichCastmember
).model(whichModel
).worldPosition member(whichCastmember
).light(whichLight
).worldPosition member(whichCastmember
).camera(whichCamera
).worldPosition member(whichCastmember
).group(whichGroup
).worldPosition
Description
3D property; allows you to get and not set the position of the specified node in world coordinates. A node can be a model, group, camera, or light. This property is equivalent in result to using getWorldTransform().position
command. The position of a node is represented by a vector object.
Example
This statement shows that the position of the model named Mars, in world coordinates, is the vector (-1333.2097, 0.0000, -211.0973).
put member("scene").model("Mars").worldPosition -- vector(-1333.2097, 0.0000, -211.0973)
See also
getWorldTransform()
, position (transform)
![]() ![]() ![]() |