|
Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
|
Classes | |
| struct | CollisionEvent |
| Actor-level collision or overlap event generated by PhysicsEngine. More... | |
| struct | CollisionHandle |
| Runtime handle for a registered collision component. More... | |
| struct | CollisionProfileHandle |
| Registry handle for a collision profile name. More... | |
| class | CollisionProfileRegistry |
| Registers collision profile names, enum mappings, and pair responses. More... | |
| struct | PhysicsBodyHandle |
| Runtime handle for a registered physics body component. More... | |
| struct | PhysicsQueryFilter |
| Collision profile filter used by PhysicsEngine scene queries. More... | |
| struct | RaycastHit |
| Result data for physics raycasts and sweep tests. More... | |
| struct | RigidBodyCreateInfo |
| Parameters used by Engine::Core::PhysicsEngine::createRigidBody(). More... | |
Enumerations | |
| enum class | CollisionResponse { Ignore , Overlap , Block } |
| Collision response selected for a pair of collision profiles. More... | |
| enum class | CollisionProfile { BlockAll , OverlapAll , IgnoreAll , WorldStatic , WorldDynamic , Pawn } |
| Built-in collision profile enum registered by CollisionProfileRegistry::registerEngineProfiles(). More... | |
| enum class | CollisionEventType { Begin , Stay , End } |
| Lifetime state for a collision or overlap pair. More... | |
Functions | |
| const char * | toString (CollisionResponse response) |
| Converts a collision response to its config string. | |
| bool | fromString (const std::string &value, CollisionResponse &outResponse) |
| Parses a collision response config string. | |
| CollisionResponse | resolvePairResponse (CollisionResponse responseAB, CollisionResponse responseBA) |
| Resolves two directed profile responses into the final pair response. | |
| void | setActiveCollisionProfileRegistry (CollisionProfileRegistry *registry) |
| Sets the process-wide collision profile registry used by physics helpers. | |
| CollisionProfileRegistry * | getActiveCollisionProfileRegistry () |
| Returns the process-wide active collision profile registry. | |
|
strong |
Lifetime state for a collision or overlap pair.
Definition at line 53 of file CollisionProfile.h.
|
strong |
Built-in collision profile enum registered by CollisionProfileRegistry::registerEngineProfiles().
Registered names use the Engine. domain prefix, for example Engine.WorldStatic. Games can register additional enum domains through CollisionProfileRegistry::registerProfileEnum().
Definition at line 40 of file CollisionProfile.h.
|
strong |
Collision response selected for a pair of collision profiles.
Pair resolution is conservative: Ignore wins over every other response, Overlap wins over Block, and Block is used only when both profiles resolve to Block.
| Enumerator | |
|---|---|
| Ignore | No contact callback and no physical collision response. |
| Overlap | Contact callback without physical collision response. |
| Block | Physical collision response and contact callback. |
Definition at line 27 of file CollisionProfile.h.
|
nodiscard |
Parses a collision response config string.
| value | String value to parse. Accepted values are "Ignore", "Overlap", and "Block". |
| outResponse | Receives the parsed response when the function returns true. |
value names a valid collision response.
|
nodiscard |
Returns the process-wide active collision profile registry.
Referenced by Engine::Components::Collision::setCollisionProfile().
|
nodiscard |
Resolves two directed profile responses into the final pair response.
Returns Ignore when either side ignores, Overlap when at least one non-ignoring side overlaps, and Block only when both sides block.
| responseAB | Response from profile A toward profile B. |
| responseBA | Response from profile B toward profile A. |
| void Engine::Physics::setActiveCollisionProfileRegistry | ( | CollisionProfileRegistry * | registry | ) |
Sets the process-wide collision profile registry used by physics helpers.
|
nodiscard |
Converts a collision response to its config string.
| response | Response value to convert. |