Difference between revisions of "Gravity"

From Castle Wiki
(Added a simple explanation of the gravity behaviour)
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Gravity is a [[blueprint|blueprints]] behaviour/property, which if enabled, applies a constant force downward force to the actor created using the said blueprint, the gravity's strength can be modified in the [[inspector]] under the
Gravity is a [[behavior]] which causes a blueprint's actors to fall. Specifically, it increases the downward velocity of an actor over time.
 
You can add Gravity by opening the [[Inspector]] for a blueprint, navigating to the '''Movement''' tab, and pressing '''Add physics or controls'''. Make sure the blueprint already has [[Motion|Dynamic motion]].
 
== Properties ==
 
* '''Strength''': How much to apply the force of gravity downward.
 
== Using Gravity with [[Rule|Rules]] ==
 
* Gravity can be enabled or disabled using the '''Enable/Disable behavior''' [[Response]]'''.'''

Latest revision as of 22:26, 16 May 2022

Gravity is a behavior which causes a blueprint's actors to fall. Specifically, it increases the downward velocity of an actor over time.

You can add Gravity by opening the Inspector for a blueprint, navigating to the Movement tab, and pressing Add physics or controls. Make sure the blueprint already has Dynamic motion.

Properties

  • Strength: How much to apply the force of gravity downward.

Using Gravity with Rules

  • Gravity can be enabled or disabled using the Enable/Disable behavior Response.