|
Nebula
|
#include <physicsinterface.h>
A collider description / create info.
Mesh and heightfield colliders read their geometry through the registered Physics::GeometryLoader.
Public Attributes | |
| Physics::ColliderType | type = Physics::ColliderType_Box |
| IndexT | materialId = InvalidIndex |
| bool | isTrigger = false |
| Math::transform | transform |
| local transform of the shape, relative to the actor it belongs to | |
| Math::vec3 | boxExtents = Math::vec3(0.5f, 0.5f, 0.5f) |
| shape parameters. Only the ones matching the collider type are read | |
| float | sphereRadius = 0.5f |
| float | capsuleRadius = 0.5f |
| float | capsuleHalfHeight = 0.5f |
| Util::StringAtom | resource |
| mesh and heightfield geometry is read through the geometry loader | |
| IndexT | primGroup = 0 |
| Physics::MeshTopology | topology = Physics::MeshTopology_Triangles |
| float | heightRange = 1.0f |
| float | targetSizeX = 1.0f |
| float | targetSizeY = 1.0f |
| uint64_t | userData = 0 |
| Math::vec3 Physics::ColliderDescription::boxExtents = Math::vec3(0.5f, 0.5f, 0.5f) |
shape parameters. Only the ones matching the collider type are read
| float Physics::ColliderDescription::capsuleHalfHeight = 0.5f |
| float Physics::ColliderDescription::capsuleRadius = 0.5f |
| float Physics::ColliderDescription::heightRange = 1.0f |
| bool Physics::ColliderDescription::isTrigger = false |
| IndexT Physics::ColliderDescription::materialId = InvalidIndex |
| IndexT Physics::ColliderDescription::primGroup = 0 |
| Util::StringAtom Physics::ColliderDescription::resource |
mesh and heightfield geometry is read through the geometry loader
| float Physics::ColliderDescription::sphereRadius = 0.5f |
| float Physics::ColliderDescription::targetSizeX = 1.0f |
| float Physics::ColliderDescription::targetSizeY = 1.0f |
| Physics::MeshTopology Physics::ColliderDescription::topology = Physics::MeshTopology_Triangles |
| Math::transform Physics::ColliderDescription::transform |
local transform of the shape, relative to the actor it belongs to
| Physics::ColliderType Physics::ColliderDescription::type = Physics::ColliderType_Box |
| uint64_t Physics::ColliderDescription::userData = 0 |