Property | Type | Description | |
---|---|---|---|
balDestForce | float | ||
balDestRumbleDurr | float | ||
balDestRumbleStr | float | ||
balloonPopNoise | |||
bumpRumbleDurr | float | ||
bumpRumbleStr | float | ||
bumpVelThreshold | float | ||
colDirThreshold | float | ||
destructableParts | ShipPart[] |
Method | Description | |
---|---|---|
Awake ( ) : void | ||
BreakPart ( ShipPart a_part ) : void |
Breaks the part, takes mass and hampers control to the ship.
|
|
EvaluatePartCollision ( |
Evaluates the collision with the input collider.
|
|
IsPartDestroyed ( ShipPart a_part ) : bool |
Returns whether the part has been destroyed.
|
|
IsPartTypeDestroyed ( EShipPartType a_type ) : bool |
Returns whether a part of the input type is still active.
|
|
OnCollisionEnter ( |
Called when a collision begins to objects.
|
|
OnTriggerEnter ( |
Called when a trigger enter begins to objects.
|
|
RepairAllParts ( ) : void |
Repairs all of the destructible parts on the ship.
|
|
RepairPart ( ShipPart a_part ) : void |
Re-enables the part, returns mass and thus restores control to the ship.
|
|
Start ( ) : void |
Use this for initialisation.
|
|
Update ( ) : void |
Update is called once per frame.
|
Method | Description | |
---|---|---|
ApplyPartCollision ( ShipPart a_part, float a_colVelSqr ) : void |
Actually applies the collision to the part, shares this method with the trigger system.
|
|
ClearPartDestroyFlags ( ShipPart a_part ) : void |
Clears the conditions necessary for ship destruction.
|
|
EvaluatePlayerCollision ( |
Evaluates the collision with the input collider.
|
|
TestShipDestroyed ( ShipPart a_part ) : void |
Tests the conditions necessary for ship destruction.
|
public BreakPart ( ShipPart a_part ) : void | ||
a_part | ShipPart | The part to test |
return | void |
public EvaluatePartCollision ( |
||
a_otherCol | ||
a_colVelSqr | float | Squared relative collision velocity magnitude. |
return | void |
public IsPartDestroyed ( ShipPart a_part ) : bool | ||
a_part | ShipPart | The part to test |
return | bool |
public IsPartTypeDestroyed ( EShipPartType a_type ) : bool | ||
a_type | EShipPartType | Ship part type. |
return | bool |
public OnCollisionEnter ( |
||
a_colInfo | Collision information. | |
return | void |
public OnTriggerEnter ( |
||
a_otherCol | Other collider. | |
return | void |
public RepairPart ( ShipPart a_part ) : void | ||
a_part | ShipPart | The part to test |
return | void |
public AudioSource,UnityEngine balloonPopNoise | ||
return |