PhysicsBody.BatchVelocity
A batch item used to set the velocity of a PhysicsBody.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.LowLevelPhysics2D
- Assembly: UnityEngine.Physics2DModule
public struct PhysicsBody.BatchVelocity
Constructors
Constructor | Description |
|---|---|
| BatchVelocity(UnityEngine.LowLevelPhysics2D.PhysicsBody) | Create a default batch velocity, assigning the PhysicsBody. |
Properties
Property | Description |
|---|---|
| angularVelocity | The angular velocity of the body, in degrees per second. PhysicsBody.angularVelocity. |
| linearVelocity | The linear velocity of the body. PhysicsBody.linearVelocity. |
| physicsBody | The PhysicsBody to write to. |