Raven Engine v0.1
A modern 3D Game Engine
Loading...
Searching...
No Matches
Raven::RigidBodyDesc Struct Reference

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].

Detailed Description

Full description used to construct a rigid body and its collider.

Member Data Documentation

◆ Friction

float Raven::RigidBodyDesc::Friction = 0.5f

Coulomb friction coefficient [0, 1].

◆ HalfExtent

Crux::vec3 Raven::RigidBodyDesc::HalfExtent = {0.5f, 0.5f, 0.5f}

Half-extents for ColliderShape::Box (metres).

◆ HalfHeight

float Raven::RigidBodyDesc::HalfHeight = 0.5f

Half-height of the cylindrical section for ColliderShape::Capsule (metres).

◆ Mass

float Raven::RigidBodyDesc::Mass = 1.0f

Mass override for dynamic bodies (kg).

◆ MotionType

BodyMotionType Raven::RigidBodyDesc::MotionType = BodyMotionType::Static

How the solver integrates this body.

◆ Radius

float Raven::RigidBodyDesc::Radius = 0.5f

◆ Restitution

float Raven::RigidBodyDesc::Restitution = 0.0f

Coefficient of restitution [0, 1].

◆ Shape

ColliderShape Raven::RigidBodyDesc::Shape = ColliderShape::Box

Primitive shape to generate.


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