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 attracted to the collider. The strength of the attraction can be specified. More...
Public Member Functions | |
void | DoCollisionAction (CollisionActionController controller, CollisionEffectStrengthEnum collisionEffectStrengthEnum) |
The Unity object detects a collision within its area triggering so the collision action and effect strength. | |
void | DoCollisionAreaExitAction (CollisionActionController controller, CollisionEffectStrengthEnum collisionEffectStrengthEnum) |
When the player leaves the collision area the effect of attraction is stopped. |
Details the action to be taken when a collision occurs with the target. In this class the target is attracted to the collider. The strength of the attraction 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.AttractCollisionAction.DoCollisionAction | ( | CollisionActionController | controller, |
CollisionEffectStrengthEnum | collisionEffectStrengthEnum ) |
The Unity object detects a collision within its area triggering so the collision action and effect strength.
controller | |
collisionEffectStrengthEnum |
Implements Collision.ICollisionAction.
void Collision.AttractCollisionAction.DoCollisionAreaExitAction | ( | CollisionActionController | controller, |
CollisionEffectStrengthEnum | collisionEffectStrengthEnum ) |
When the player leaves the collision area the effect of attraction is stopped.
controller | |
collisionEffectStrengthEnum |
Implements Collision.ICollisionAction.