PhysicsBody.BatchTransform
A batch item used to get/set the pose of a PhysicsBody.
読み終わるまでの所要時間 1 分最終更新 23日前
Definition
- Type: Struct
- Namespace: Unity.U2D.Physics
- Assembly: UnityEngine.PhysicsCore2DModule
public struct PhysicsBody.BatchTransform
Constructors
Constructor | Description |
|---|---|
| BatchTransform(Unity.U2D.Physics.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. |