Unity and Flutter apps Home Page
Work to create apps for generating revenue
|
Details the action to be taken when a collision occurs with the target. In this class the target is bounced away from the collider. The strength of the bounce can be specified. More...
Public Member Functions | |
void | DoCollisionAction (CollisionActionController controller, CollisionEffectStrengthEnum collisionEffectStrengthEnum) |
On entering the collision zone this method is called. In this case the target is bounced away from the collider. The strength of the bounce is determined by the parameter set in the game object i.e. the parameter CollisionEffectStrengthEnum value There is a bit of maths involved! | |
void | DoCollisionAreaExitAction (CollisionActionController controller, CollisionEffectStrengthEnum collisionEffectStrengthEnum) |
Details the action to be taken when a collision occurs with the target. In this class the target is bounced away from the collider. The strength of the bounce can be specified.
Each action type can be set against the collider object by adding the CollectionActionController to the collider object and setting the action name and strength.
void Collision.BounceCollisionAction.DoCollisionAction | ( | CollisionActionController | controller, |
CollisionEffectStrengthEnum | collisionEffectStrengthEnum ) |
On entering the collision zone this method is called. In this case the target is bounced away from the collider. The strength of the bounce is determined by the parameter set in the game object i.e. the parameter CollisionEffectStrengthEnum value There is a bit of maths involved!
controller | |
collisionEffectStrengthEnum |
Implements Collision.ICollisionAction.
void Collision.BounceCollisionAction.DoCollisionAreaExitAction | ( | CollisionActionController | controller, |
CollisionEffectStrengthEnum | collisionEffectStrengthEnum ) |
controller | |
collisionEffectStrengthEnum |
Implements Collision.ICollisionAction.