![]() |
Plasma Engine
2.0
|
Flags for what should happen when two physical bodies touch. More...
#include <Declarations.h>
Classes | |
struct | Bits |
Public Types | |
enum | Enum { None = 0 , ImpactReactions = PL_BIT(1) , SlideReactions = PL_BIT(2) , RollXReactions = PL_BIT(3) , RollYReactions = PL_BIT(4) , RollZReactions = PL_BIT(5) , AllRollReactions = RollXReactions | RollYReactions | RollZReactions , SlideAndRollReactions = AllRollReactions | SlideReactions , AllReactions = ImpactReactions | AllRollReactions | SlideReactions , Default = None } |
using | StorageType = plUInt32 |
Flags for what should happen when two physical bodies touch.
The reactions need to be set up through plSurface's. For most objects only some reactions make sense. For example a box may hit another object as well as slide, but it cannot roll. A barrel can impact and slide on some sides, but roll around its up axis (Z). A sphere can impact and roll around all its axis, but never slide. A soft object may not have any impact reactions.