scene.transform
Read and change scene-node position and orientation.
14 functions / 15 types
Index
| Function | Description |
|---|---|
| Get | Get the TransformSchema of the given NodeSchema if one exists |
| GetRotation | Get the rotation as a DQuat from the given scene object. |
| GetTranslation | Get the translation as a DVec3 from the given scene object. |
| Remove | Remove the current transform from the scene node. |
| RotateX | Rotate the given scene object on the X-axis in-place by a certain angle. |
| RotateY | Rotate the given scene object on the Y-axis in-place by a certain angle. |
| RotateZ | Rotate the given scene object on the Z-axis in-place by a certain angle. |
| Set | Set a TransformSchema for the given NodeSchema |
| SetRotation | Set the rotation of the given scene object in the world. |
| SetTranslation | Change the translation of the given scene object in the world. |
| Translate | Translate the given scene object in the world by a set amount. |
| TranslateX | Translate the given scene object on the X-axis. |
| TranslateY | Translate the given scene object on the Y-axis. |
| TranslateZ | Translate the given scene object on the Z-axis. |
| Type | Description |
|---|---|
| GetRotation | Get the rotation as a DQuat from the given scene object. |
| GetTransform | Get the TransformSchema of the given NodeSchema if one exists |
| GetTransformResponse | |
| GetTranslation | Get the translation as a DVec3 from the given scene object. |
| RemoveTransform | Remove the current transform from the scene node. |
| RotateX | Rotate the given scene object on the X-axis in-place by a certain angle. |
| RotateY | Rotate the given scene object on the Y-axis in-place by a certain angle. |
| RotateZ | Rotate the given scene object on the Z-axis in-place by a certain angle. |
| SetRotation | Set the rotation of the given scene object in the world. |
| SetTransform | Set a TransformSchema for the given NodeSchema |
| SetTranslation | Change the translation of the given scene object in the world. |
| Translate | Translate the given scene object in the world by a set amount. |
| TranslateX | Translate the given scene object on the X-axis. |
| TranslateY | Translate the given scene object on the Y-axis. |
| TranslateZ | Translate the given scene object on the Z-axis. |
Get
RPC
Get(request: scene.transform.GetTransform) -> scene.transform.GetTransformResponseGet the TransformSchema of the given NodeSchema if one exists
Service method: spatialengine.v1.scene.transform.SceneTransform.Get.
Returns scene.transform.GetTransformResponse.
node : scene.Node
NodeSchema to get the TransformSchema of
GetRotation
RPC
GetRotation(request: scene.transform.GetRotation) -> math.QuatGet the rotation as a DQuat from the given scene object.
Service method: spatialengine.v1.scene.transform.SceneTransform.GetRotation.
Returns math.Quat.
node : scene.Node
The shape to query.
GetTranslation
RPC
GetTranslation(request: scene.transform.GetTranslation) -> math.Vec3Get the translation as a DVec3 from the given scene object.
Service method: spatialengine.v1.scene.transform.SceneTransform.GetTranslation.
Returns math.Vec3.
node : scene.Node
The shape to query.
Remove
RPC
Remove(request: scene.transform.RemoveTransform) -> google.protobuf.EmptyRemove the current transform from the scene node.
Service method: spatialengine.v1.scene.transform.SceneTransform.Remove.
Returns google.protobuf.Empty.
node : scene.Node
The scene node, rather than an internal render entity.
RotateX
RPC
RotateX(request: scene.transform.RotateX) -> google.protobuf.EmptyRotate the given scene object on the X-axis in-place by a certain angle.
Service method: spatialengine.v1.scene.transform.SceneTransform.RotateX.
Returns google.protobuf.Empty.
node : scene.Node
The NodeSchema to transform.
angle : double
The angle (in radians) to rotate the shape by.
RotateY
RPC
RotateY(request: scene.transform.RotateY) -> google.protobuf.EmptyRotate the given scene object on the Y-axis in-place by a certain angle.
Service method: spatialengine.v1.scene.transform.SceneTransform.RotateY.
Returns google.protobuf.Empty.
node : scene.Node
The NodeSchema to transform.
angle : double
The angle (in radians) to rotate the shape by.
RotateZ
RPC
RotateZ(request: scene.transform.RotateZ) -> google.protobuf.EmptyRotate the given scene object on the Z-axis in-place by a certain angle.
Service method: spatialengine.v1.scene.transform.SceneTransform.RotateZ.
Returns google.protobuf.Empty.
node : scene.Node
The NodeSchema to transform.
angle : double
The angle (in radians) to rotate the shape by.
Set
RPC
Set(request: scene.transform.SetTransform) -> google.protobuf.EmptySet a TransformSchema for the given NodeSchema
Service method: spatialengine.v1.scene.transform.SceneTransform.Set.
Returns google.protobuf.Empty.
node : scene.Node
NodeSchema to change the TransformSchema of
transform : scene.Transform
The new TransformSchema
SetRotation
RPC
SetRotation(request: scene.transform.SetRotation) -> google.protobuf.EmptySet the rotation of the given scene object in the world.
Service method: spatialengine.v1.scene.transform.SceneTransform.SetRotation.
Returns google.protobuf.Empty.
node : scene.Node
The NodeSchema to transform.
rotation : math.Quat
The new rotation to give to the shape.
SetTranslation
RPC
SetTranslation(request: scene.transform.SetTranslation) -> google.protobuf.EmptyChange the translation of the given scene object in the world.
Service method: spatialengine.v1.scene.transform.SceneTransform.SetTranslation.
Returns google.protobuf.Empty.
node : scene.Node
The NodeSchema to transform.
translation : math.Vec3
The new position to give to the shape.
Translate
RPC
Translate(request: scene.transform.Translate) -> google.protobuf.EmptyTranslate the given scene object in the world by a set amount.
Service method: spatialengine.v1.scene.transform.SceneTransform.Translate.
Returns google.protobuf.Empty.
node : scene.Node
The NodeSchema to transform.
translation : math.Vec3
Translate the shape.
TranslateX
RPC
TranslateX(request: scene.transform.TranslateX) -> google.protobuf.EmptyTranslate the given scene object on the X-axis.
Service method: spatialengine.v1.scene.transform.SceneTransform.TranslateX.
Returns google.protobuf.Empty.
node : scene.Node
The NodeSchema to transform.
translation : double
Translate the shape on the X-axis.
TranslateY
RPC
TranslateY(request: scene.transform.TranslateY) -> google.protobuf.EmptyTranslate the given scene object on the Y-axis.
Service method: spatialengine.v1.scene.transform.SceneTransform.TranslateY.
Returns google.protobuf.Empty.
node : scene.Node
The NodeSchema to transform.
translation : double
Translate the shape on the Y-axis.
TranslateZ
RPC
TranslateZ(request: scene.transform.TranslateZ) -> google.protobuf.EmptyTranslate the given scene object on the Z-axis.
Service method: spatialengine.v1.scene.transform.SceneTransform.TranslateZ.
Returns google.protobuf.Empty.
node : scene.Node
The NodeSchema to transform.
translation : double
Translate the shape on the Z-axis.
GetRotation
Message
Get the rotation as a DQuat from the given scene object.
node : scene.Node
The shape to query.
GetTransform
Message
Get the TransformSchema of the given NodeSchema if one exists
node : scene.Node
NodeSchema to get the TransformSchema of
GetTransformResponse
Message
value optional : scene.Transform
GetTranslation
Message
Get the translation as a DVec3 from the given scene object.
node : scene.Node
The shape to query.
RemoveTransform
Message
Remove the current transform from the scene node.
node : scene.Node
The scene node, rather than an internal render entity.
RotateX
Message
Rotate the given scene object on the X-axis in-place by a certain angle.
node : scene.Node
The NodeSchema to transform.
angle : double
The angle (in radians) to rotate the shape by.
RotateY
Message
Rotate the given scene object on the Y-axis in-place by a certain angle.
node : scene.Node
The NodeSchema to transform.
angle : double
The angle (in radians) to rotate the shape by.
RotateZ
Message
Rotate the given scene object on the Z-axis in-place by a certain angle.
node : scene.Node
The NodeSchema to transform.
angle : double
The angle (in radians) to rotate the shape by.
SetRotation
Message
Set the rotation of the given scene object in the world.
node : scene.Node
The NodeSchema to transform.
rotation : math.Quat
The new rotation to give to the shape.
SetTransform
Message
Set a TransformSchema for the given NodeSchema
node : scene.Node
NodeSchema to change the TransformSchema of
transform : scene.Transform
The new TransformSchema
SetTranslation
Message
Change the translation of the given scene object in the world.
node : scene.Node
The NodeSchema to transform.
translation : math.Vec3
The new position to give to the shape.
Translate
Message
Translate the given scene object in the world by a set amount.
node : scene.Node
The NodeSchema to transform.
translation : math.Vec3
Translate the shape.
TranslateX
Message
Translate the given scene object on the X-axis.
node : scene.Node
The NodeSchema to transform.
translation : double
Translate the shape on the X-axis.
TranslateY
Message
Translate the given scene object on the Y-axis.
node : scene.Node
The NodeSchema to transform.
translation : double
Translate the shape on the Y-axis.
TranslateZ
Message
Translate the given scene object on the Z-axis.
node : scene.Node
The NodeSchema to transform.
translation : double
Translate the shape on the Z-axis.