Difference between revisions of "Bounce"

From Castle Wiki
(Fix rebound property name)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
'''Bounce''' is a [[behavior]] that allows dynamic actors to bounce 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.
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!