Difference between revisions of "Solid"

From Castle Wiki
Line 1: Line 1:
'''Solid''' is a [[behavior]] that that determines whether the actor can overlap with other actors during a [[collision]].
'''Solid''' is a [[behavior]] that that determines whether the actor can overlap with other actors during a [[collision]].


Solid is typically used for the collisions of Dynamic actors. If actors with Fixed Movement and/or No Movement collides with each other, it will not work and they will only move through each other. Only Dynamic actors cannot move through Solid actors. (unless it gets squeezed, then it might flew off)
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.


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

Revision as of 20:11, 13 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.

For more information, see Collision.