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.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
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. |