Method | Description | |
---|---|---|
StartPhysics ( |
Starts physics handling on the object. The object is expected to not have rigidbody. The one will be added with the proper mass and velocity settings. Parent transform of the physics object will be set top |
|
StopPhysics ( ) : void |
Stops physics handling on the object. Rigidbody on the object gets destroyed. |
Method | Description | |
---|---|---|
FixedUpdate ( ) : void |
Overriden from MonoBehavior.
|
|
OnDestroy ( ) : void |
Overriden from MonoBehavior.
|
|
OnPartPack ( ) : void |
Part's message handler. Temporarily suspends physics handling on the object. |
|
OnPartUnpack ( ) : void |
Part's message handler. Resumes physics handling on the object. |
|
WaitAndPromoteToPhysic ( ) : IEnumerator |
Turns rigidbody to a physics object. The update is delayed till the next fixed update to let game's physics to work. Once updated the physical object is guaranteed to be detached from the parent. |
|
WaitAndUpdateVelocities ( ) : IEnumerator |
Aligns position, rotation and velocity of the rigidbody. The update is delayed till the next fixed update to let game's physics to work. |
public StartPhysics ( |
||
physicObj | Game object to attach physics to. In normal case it's never a part's /// gameobject. | |
mass | float | Mass of the rigidbody. |
delayPhysics | bool | If default or |
return | void |