Difference between revisions of "Solid"

From Castle Wiki
(Clarifying solid + dynamic motion)
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
* Solid actors with no motion (for example, walls) will never change position after a collision.
* Solid actors with no motion (for example, walls) will never change position after a collision.
* Actors with fixed motion will avoid changing their velocity after a collision.
* Actors with fixed motion will avoid changing their velocity after a collision.
* Actors with dynamic motion may change both their position and their velocity after a collision.
* Actors with dynamic motion may change both their position and their velocity after a collision. They are pushed away by other solid actors.


For more information, see [[Collision]].
For more information, see [[Collision]] and [[Motion]].

Latest revision as of 07:25, 14 May 2022

Solid is a behavior that that determines whether the actor can overlap with other actors during a collision.

Solid actors can behave differently depending on what kind of Motion they have.

  • Solid actors with no motion (for example, walls) will never change position after a collision.
  • Actors with fixed motion will avoid changing their velocity after a collision.
  • Actors with dynamic motion may change both their position and their velocity after a collision. They are pushed away by other solid actors.

For more information, see Collision and Motion.