NcEngine
nc::RigidBodyFlags Struct Reference

Flags for configuring RigidBody behavior. More...

#include <RigidBody.h>

Public Types

using Type = uint8_t
 

Static Public Attributes

static constexpr Type None = 0x0
 Disable all flags.
 
static constexpr Type Trigger = 0x1
 Disables the collision response for the body and raises trigger events instead of collision events.
 
static constexpr Type ContinuousDetection = 0x2
 Enable continuous collision detection on the body using a linear shape cast. (incompatible with Trigger)
 
static constexpr Type IgnoreTransformScaling = 0x4
 Scale the body's shape using the associated Transform's scale. More...
 
static constexpr Type DisableSleeping = 0x8
 Force RigidBody to always be in an awake state (incompatible with BodyType::Static).
 

Detailed Description

Flags for configuring RigidBody behavior.

Member Data Documentation

◆ IgnoreTransformScaling

constexpr Type nc::RigidBodyFlags::IgnoreTransformScaling = 0x4
staticconstexpr

Scale the body's shape using the associated Transform's scale.

For shapes with scaling restrictions, this may force updates to the Transform to prevent invalid shape scaling. E.g. placing a sphere on an object with non-uniform Transform scaling will update the Transform to have uniform scaling.


The documentation for this struct was generated from the following file: