3D Lingo Dictionary > E-K > identity() |
![]() ![]() ![]() |
identity()
Syntax
member(whichCastmember
).model(whichModel
).transform.identity() member(whichCastmember
).group(whichGroup
).transform.identity() member(whichCastmember
).camera(whichCamera
).transform.identity() sprite(whichSprite
).camera{(index
)}.transform.identity() member(whichCastmember
).light(whichLight
).transform.identity()transformReference
.identity()
Description
3D command; sets the transform to the identity transform, which is transform(1.0000,0.0000,0.0000,0.0000, 0.0000,1.0000,0.0000,0.0000, 0.0000,0.0000,1.0000,0.0000, 0.0000,0.0000,0.0000,1.0000)
.
The position
property of the identity transform is vector(0, 0, 0)
.
The rotation
property of the identity transform is vector(0, 0, 0)
.
The scale
property of the identity transform is vector(1, 1, 1)
.
The identity transform is parent-relative.
Example
This statement sets the transform of the model named Box to the identity transform.
member("3d world").model("Box").transform.identity()
See also
transform (property)
, getWorldTransform()
![]() ![]() ![]() |