Difference between revisions of "Bounce"

From Castle Wiki
 
Line 5: Line 5:
== Properties ==
== 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.
* '''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!