Full description used to construct a rigid body and its collider. More...
#include <PhysicsWorld.h>
Public Attributes | |
| BodyMotionType | MotionType = BodyMotionType::Static |
| How the solver integrates this body. | |
| ColliderShape | Shape = ColliderShape::Box |
| Primitive shape to generate. | |
| Crux::vec3 | HalfExtent = {0.5f, 0.5f, 0.5f} |
| Half-extents for ColliderShape::Box (metres). | |
| float | Radius = 0.5f |
| Radius for ColliderShape::Sphere and ColliderShape::Capsule (metres). | |
| float | HalfHeight = 0.5f |
| Half-height of the cylindrical section for ColliderShape::Capsule (metres). | |
| float | Mass = 1.0f |
| Mass override for dynamic bodies (kg). | |
| float | Friction = 0.5f |
| Coulomb friction coefficient [0, 1]. | |
| float | Restitution = 0.0f |
| Coefficient of restitution [0, 1]. | |
Full description used to construct a rigid body and its collider.
| float Raven::RigidBodyDesc::Friction = 0.5f |
Coulomb friction coefficient [0, 1].
| Crux::vec3 Raven::RigidBodyDesc::HalfExtent = {0.5f, 0.5f, 0.5f} |
Half-extents for ColliderShape::Box (metres).
| float Raven::RigidBodyDesc::HalfHeight = 0.5f |
Half-height of the cylindrical section for ColliderShape::Capsule (metres).
| float Raven::RigidBodyDesc::Mass = 1.0f |
Mass override for dynamic bodies (kg).
| BodyMotionType Raven::RigidBodyDesc::MotionType = BodyMotionType::Static |
How the solver integrates this body.
| float Raven::RigidBodyDesc::Radius = 0.5f |
Radius for ColliderShape::Sphere and ColliderShape::Capsule (metres).
| float Raven::RigidBodyDesc::Restitution = 0.0f |
Coefficient of restitution [0, 1].
| ColliderShape Raven::RigidBodyDesc::Shape = ColliderShape::Box |
Primitive shape to generate.