|
Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
|
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. | |
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.
| 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.
| 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.
| 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.
| btCollisionShape* Engine::Physics::RigidBodyCreateInfo::shape = nullptr |
Collision shape used by the body. Must not be nullptr.
Definition at line 65 of file PhysicsEngine.h.
| glm::mat4 Engine::Physics::RigidBodyCreateInfo::transform {1.0f} |
Initial world transform for the rigid body.
Definition at line 59 of file PhysicsEngine.h.