Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

PhysicsWorld.SetTransform

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static void SetTransform(Transform transform, ref Vector3 position, bool transformChangedEvent);

Parameters

Parameter Description
transform The transform to change.
position The global position to set the transform to.
transformChangedEvent By default, no transform changed event will be produced however this behaviour can be overridden with this argument.

Description

Set the Transform position without causing a TransformChangeEvent to be generated by default. See PhysicsWorld.RegisterTransformChange.


Declaration

public static void SetTransform(Transform transform, ref Vector3 position, ref Quaternion rotation, bool transformChangedEvent);

Parameters

Parameter Description
transform The transform to change.
position The global position to set the transform to.
rotation The global rotation to set the transform to.
transformChangedEvent By default, no transform changed event will be produced however this behaviour can be overridden with this argument.

Description

Set the Transform position and rotation without causing a TransformChangeEvent to be generated. See PhysicsWorld.RegisterTransformChange.