Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetTransformSlow3D

Set the Transform position and rotation using the specified PhysicsWorld.TransformPlane. For position, only two axis will be updated with the others remaining unchanged. For rotation, only a single rotation axis will be changed with the others remaining unchanged. See: PhysicsMath.ToRotationSlow3D and PhysicsWorld.SetTransform.
Read time 2 minutesLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule

SetTransformSlow3D(PhysicsTransform, Transform, TransformPlane, bool)

Set the Transform position and rotation using the specified PhysicsWorld.TransformPlane. For position, only two axis will be updated with the others remaining unchanged. For rotation, only a single rotation axis will be changed with the others remaining unchanged.
public static void SetTransformSlow3D(PhysicsTransform physicsTransform, Transform transform, PhysicsWorld.TransformPlane transformPlane = TransformPlane.XY, bool transformChangedEvent = false)

Parameters

physicsTransform

The physics transform to use as the source of the pose.

transform

The Transform to set.

transformPlane

The transform plane to use.

transformChangedEvent

By default, no transform changed event will be produced however this behaviour can be overridden with this argument.

SetTransformSlow3D(PhysicsTransform, Transform, PhysicsWorld, bool)

Set the Transform position and rotation using the specified world's transform plane. For position, only two axis will be updated with the others remaining unchanged. For rotation, only a single rotation axis will be changed with the others remaining unchanged.
public static void SetTransformSlow3D(PhysicsTransform physicsTransform, Transform transform, PhysicsWorld world, bool transformChangedEvent = false)

Parameters

physicsTransform

The physics transform to use as the source of the pose.

transform

The Transform to set.

The world whose transform plane is used.

transformChangedEvent

By default, no transform changed event will be produced however this behaviour can be overridden with this argument.