Class ConstantForce2D
Inherited Members
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
[RequireComponent(typeof(Rigidbody2D))]
public sealed class ConstantForce2D : PhysicsUpdateBehaviour2D
Properties
force
Declaration
public Vector2 force { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
relativeForce
Declaration
public Vector2 relativeForce { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector2 |
torque
Declaration
public float torque { get; set; }
Property Value
| Type | Description |
|---|---|
| Single |