SetAndWriteTransform(PhysicsTransform)
Set the full transform of the body composed of position and rotation and also write to the associated PhysicsBody.transformObject. The PhysicsBody.transformObject won't be written to if it isn't assigned or the PhysicsWorld.transformWriteMode are off. The body will always be updated however. See PhysicsBody.transformObject.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public bool SetAndWriteTransform(PhysicsTransform transform)
Parameters
The full transform of the body composed of position and rotation.
Returns
Type | Description |
|---|---|
| bool | Whether the PhysicsBody.transformObject was written to. |