PhysicsBody.BatchTransform
A batch item used to set the pose of a PhysicsBody.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public struct PhysicsBody.BatchTransform
Constructors
Constructor | Description |
|---|---|
| BatchTransform(UnityEngine.LowLevelPhysics2D.PhysicsBody) | Create a default batch transform, assigning the PhysicsBody. |
Properties
Property | Description |
|---|---|
| physicsBody | The PhysicsBody to write to. |
| position | The position of the body in the world. PhysicsBody.position. |
| rotation | The rotation of the body. PhysicsBody.rotation. |
| transform | The full transform of the body composed of position and rotation. PhysicsBody.transform. |