Method | Description | |
---|---|---|
AddForce ( |
Apply a force to the rigidbody.
|
|
AddForceAtPosition ( |
Apply a force at a given position in space.
|
|
AddRelativeForce ( |
Adds a force to the rigidbody2D relative to its coordinate system.
|
|
Cast ( |
All the Collider2D shapes attached to the Rigidbody2D are cast into the scene starting at each collider position ignoring the colliders attached to the same Rigidbody2D.
|
|
OverlapPoint ( |
Check if any of the Rigidbody2D colliders overlap a point in space.
|
Method | Description | |
---|---|---|
AddTorque ( float torque, [ mode ) : void | ||
Cast ( |
||
INTERNAL_CALL_Cast ( |
||
INTERNAL_CALL_OverlapPoint ( |
||
IsTouchingLayers ( [ layerMask ) : bool | ||
SetDragBehaviour ( bool dragged ) : void |
public AddForce ( |
||
force | Components of the force in the X and Y axes. | |
mode | [ | The method used to apply the specified force. |
return | void |
public AddForceAtPosition ( |
||
force | Components of the force in the X and Y axes. | |
position | Position in world space to apply the force. | |
mode | [ | The method used to apply the specified force. |
return | void |
public AddRelativeForce ( |
||
relativeForce | Components of the force in the X and Y axes. | |
mode | [ | The method used to apply the specified force. |
return | void |
public Cast ( |
||
direction | Vector representing the direction to cast each Collider2D shape. | |
results | Array to receive results. | |
distance | [ | Maximum distance over which to cast the shape(s). |
return | int |
public OverlapPoint ( |
||
point | A point in world space. | |
return | bool |