Nebula
Loading...
Searching...
No Matches
Physics::ColliderDescription Struct Reference

#include <physicsinterface.h>

Detailed Description

A collider description / create info.

Mesh and heightfield colliders read their geometry through the registered Physics::GeometryLoader.

See also
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

Member Data Documentation

◆ boxExtents

Math::vec3 Physics::ColliderDescription::boxExtents = Math::vec3(0.5f, 0.5f, 0.5f)

shape parameters. Only the ones matching the collider type are read

◆ capsuleHalfHeight

float Physics::ColliderDescription::capsuleHalfHeight = 0.5f

◆ capsuleRadius

float Physics::ColliderDescription::capsuleRadius = 0.5f

◆ heightRange

float Physics::ColliderDescription::heightRange = 1.0f

◆ isTrigger

bool Physics::ColliderDescription::isTrigger = false

◆ materialId

IndexT Physics::ColliderDescription::materialId = InvalidIndex

◆ primGroup

IndexT Physics::ColliderDescription::primGroup = 0

◆ resource

Util::StringAtom Physics::ColliderDescription::resource

mesh and heightfield geometry is read through the geometry loader

◆ sphereRadius

float Physics::ColliderDescription::sphereRadius = 0.5f

◆ targetSizeX

float Physics::ColliderDescription::targetSizeX = 1.0f

◆ targetSizeY

float Physics::ColliderDescription::targetSizeY = 1.0f

◆ topology

Physics::MeshTopology Physics::ColliderDescription::topology = Physics::MeshTopology_Triangles

◆ transform

Math::transform Physics::ColliderDescription::transform

local transform of the shape, relative to the actor it belongs to

◆ type

Physics::ColliderType Physics::ColliderDescription::type = Physics::ColliderType_Box

◆ userData

uint64_t Physics::ColliderDescription::userData = 0

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