57 lines
2.4 KiB
Plaintext
57 lines
2.4 KiB
Plaintext
---
|
|
source: physx-sys/pxbind/tests/enums.rs
|
|
expression: "gen_enums(\"u32.h\", &[]).unwrap()"
|
|
---
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
|
#[repr(u32)]
|
|
pub enum PxThreadPriority {
|
|
/// High priority
|
|
High = 0,
|
|
/// Above Normal priority
|
|
AboveNormal = 1,
|
|
/// Normal/default priority
|
|
Normal = 2,
|
|
/// Below Normal priority
|
|
BelowNormal = 3,
|
|
/// Low priority.
|
|
Low = 4,
|
|
ForceDword = 4294967295,
|
|
}
|
|
|
|
/// Flags which affect the behavior of PxShapes.
|
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
|
#[repr(i32)]
|
|
pub enum PxShapeFlag {
|
|
/// The shape will partake in collision in the physical simulation.
|
|
///
|
|
/// It is illegal to raise the eSIMULATION_SHAPE and eTRIGGER_SHAPE flags.
|
|
/// In the event that one of these flags is already raised the sdk will reject any
|
|
/// attempt to raise the other. To raise the eSIMULATION_SHAPE first ensure that
|
|
/// eTRIGGER_SHAPE is already lowered.
|
|
///
|
|
/// This flag has no effect if simulation is disabled for the corresponding actor (see [`PxActorFlag::eDISABLE_SIMULATION`]).
|
|
SimulationShape = 1,
|
|
/// The shape will partake in scene queries (ray casts, overlap tests, sweeps, ...).
|
|
SceneQueryShape = 2,
|
|
/// The shape is a trigger which can send reports whenever other shapes enter/leave its volume.
|
|
///
|
|
/// Triangle meshes and heightfields can not be triggers. Shape creation will fail in these cases.
|
|
///
|
|
/// Shapes marked as triggers do not collide with other objects. If an object should act both
|
|
/// as a trigger shape and a collision shape then create a rigid body with two shapes, one being a
|
|
/// trigger shape and the other a collision shape. It is illegal to raise the eTRIGGER_SHAPE and
|
|
/// eSIMULATION_SHAPE flags on a single PxShape instance. In the event that one of these flags is already
|
|
/// raised the sdk will reject any attempt to raise the other. To raise the eTRIGGER_SHAPE flag first
|
|
/// ensure that eSIMULATION_SHAPE flag is already lowered.
|
|
///
|
|
/// Trigger shapes will no longer send notification events for interactions with other trigger shapes.
|
|
///
|
|
/// Shapes marked as triggers are allowed to participate in scene queries, provided the eSCENE_QUERY_SHAPE flag is set.
|
|
///
|
|
/// This flag has no effect if simulation is disabled for the corresponding actor (see [`PxActorFlag::eDISABLE_SIMULATION`]).
|
|
TriggerShape = 4,
|
|
/// Enable debug renderer for this shape
|
|
Visualization = 8,
|
|
}
|
|
|