Skip to content

scene.transform

Read and change scene-node position and orientation.

14 functions / 15 types

Index

FunctionDescription
GetGet the TransformSchema of the given NodeSchema if one exists
GetRotationGet the rotation as a DQuat from the given scene object.
GetTranslationGet the translation as a DVec3 from the given scene object.
RemoveRemove the current transform from the scene node.
RotateXRotate the given scene object on the X-axis in-place by a certain angle.
RotateYRotate the given scene object on the Y-axis in-place by a certain angle.
RotateZRotate the given scene object on the Z-axis in-place by a certain angle.
SetSet a TransformSchema for the given NodeSchema
SetRotationSet the rotation of the given scene object in the world.
SetTranslationChange the translation of the given scene object in the world.
TranslateTranslate the given scene object in the world by a set amount.
TranslateXTranslate the given scene object on the X-axis.
TranslateYTranslate the given scene object on the Y-axis.
TranslateZTranslate the given scene object on the Z-axis.
TypeDescription
GetRotationGet the rotation as a DQuat from the given scene object.
GetTransformGet the TransformSchema of the given NodeSchema if one exists
GetTransformResponse
GetTranslationGet the translation as a DVec3 from the given scene object.
RemoveTransformRemove the current transform from the scene node.
RotateXRotate the given scene object on the X-axis in-place by a certain angle.
RotateYRotate the given scene object on the Y-axis in-place by a certain angle.
RotateZRotate the given scene object on the Z-axis in-place by a certain angle.
SetRotationSet the rotation of the given scene object in the world.
SetTransformSet a TransformSchema for the given NodeSchema
SetTranslationChange the translation of the given scene object in the world.
TranslateTranslate the given scene object in the world by a set amount.
TranslateXTranslate the given scene object on the X-axis.
TranslateYTranslate the given scene object on the Y-axis.
TranslateZTranslate the given scene object on the Z-axis.

Get

RPC

Get(request: scene.transform.GetTransform) -> scene.transform.GetTransformResponse

Get 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.Quat

Get 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.Vec3

Get 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.Empty

Remove 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.Empty

Rotate 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.Empty

Rotate 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.Empty

Rotate 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.Empty

Set 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.Empty

Set 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.Empty

Change 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.Empty

Translate 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.Empty

Translate 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.Empty

Translate 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.Empty

Translate 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.