Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Physics::RigidBodyCreateInfo Struct Reference

Parameters used by Engine::Core::PhysicsEngine::createRigidBody(). More...

#include <PhysicsEngine.h>

Public Attributes

glm::mat4 transform {1.0f}
 Initial world transform for the rigid body.
float mass = 1.0f
 Mass in kilograms. A value of 0 creates an immovable static body.
btCollisionShape * shape = nullptr
 Collision shape used by the body. Must not be nullptr.
float friction = 0.5f
 Surface friction. 0.0 is low friction, 1.0 is high friction.
float restitution = 0.0f
 Restitution. 0.0 absorbs impact energy, 1.0 preserves impact energy.

Detailed Description

Parameters used by Engine::Core::PhysicsEngine::createRigidBody().

The collision shape pointer must stay valid for the lifetime of the rigid body. A mass of 0 creates a static body.

Definition at line 56 of file PhysicsEngine.h.

Member Data Documentation

◆ friction

float Engine::Physics::RigidBodyCreateInfo::friction = 0.5f

Surface friction. 0.0 is low friction, 1.0 is high friction.

Definition at line 68 of file PhysicsEngine.h.

◆ mass

float Engine::Physics::RigidBodyCreateInfo::mass = 1.0f

Mass in kilograms. A value of 0 creates an immovable static body.

Definition at line 62 of file PhysicsEngine.h.

◆ restitution

float Engine::Physics::RigidBodyCreateInfo::restitution = 0.0f

Restitution. 0.0 absorbs impact energy, 1.0 preserves impact energy.

Definition at line 71 of file PhysicsEngine.h.

◆ shape

btCollisionShape* Engine::Physics::RigidBodyCreateInfo::shape = nullptr

Collision shape used by the body. Must not be nullptr.

Definition at line 65 of file PhysicsEngine.h.

◆ transform

glm::mat4 Engine::Physics::RigidBodyCreateInfo::transform {1.0f}

Initial world transform for the rigid body.

Definition at line 59 of file PhysicsEngine.h.


The documentation for this struct was generated from the following file:
  • /workspace/magerbeton/gl3-vulkan/code/Engine/include/Engine/Physics/PhysicsEngine.h