Difference between revisions of "Bounce"

From Castle Wiki
(description)
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''Bounce''' is a [[behavior]] that allows dynamic actors to bounce off when colliding with solid actors.
'''Bounce''' is a [[behavior]] that causes actors to bounce when [[Collision|colliding]] with solid actors.


[[Solid]] needs to be enabled for '''Bounce''' to work.
[[Solid]] needs to be enabled for '''Bounce''' to work.


=== Properties ===
== Properties ==


* '''Strength''': Rate of actor's bounce (where 1 is 100%).
* '''Rebound''': The amount to bounce. A rebound of 1 means that the object will have the same speed before and after the collision, but in a different direction. Below 1 means the actor will lose some momentum during the bounce. Rebound higher than 1 means the actor will gain momentum, which is not realistic but can be interesting!

Latest revision as of 18:42, 14 May 2022

Bounce is a behavior that causes actors to bounce when colliding with solid actors.

Solid needs to be enabled for Bounce to work.

Properties

  • Rebound: The amount to bounce. A rebound of 1 means that the object will have the same speed before and after the collision, but in a different direction. Below 1 means the actor will lose some momentum during the bounce. Rebound higher than 1 means the actor will gain momentum, which is not realistic but can be interesting!