A class in Root.Township, the global namespace.
Added to a hand's interaction point by PickupJoints for the EmptyJoint grab type: no physical joint, it just turns off the pickup's network rigidbody while held.
Constructors
| Member | What it is |
|---|
EmptyJoint() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
3 private and internal fields
| Member | What it is |
|---|
private Rigidbody connectedBody | Rigidbody of the held pickup. |
private NetworkRigidbody networkRigidbody | Network rigidbody on that body, disabled while held. |
private Pickup pickup | The held pickup. |
Properties
| Member | What it is |
|---|
Controller Controller { get; private set; } | Controller of the hand that grabbed the pickup. |
Methods
| Member | What it is |
|---|
void Initialize(Pickup pickup, Interactor interactor, Rigidbody connectedBody) | Stores the grab, moves a NaN-positioned pickup to the hand, disables the network rigidbody and listens for the grab ending. |
1 private and internal method
| Member | What it is |
|---|
private void PickupInteractionEnded(Interactable interactable, Interactor interactor) | When this hand lets go and nobody else holds it, turns the network rigidbody back on (if undocked) and restores the max angular velocity. |