25 #ifndef __I6ENGINE_MODULES_PHYSICSVELOCITYCOMPONENT_H__
26 #define __I6ENGINE_MODULES_PHYSICSVELOCITYCOMPONENT_H__
56 _resistanceCoefficient = resistanceCoefficient;
69 double _resistanceCoefficient;
74 std::function<void(void)> _callback;
void setWindage(double windage)
Implements 3-dimensional vectors.
void setResistanceCoefficient(double resistanceCoefficient)
#define ASSERT_THREAD_SAFETY_HEADER
PhysicsVelocityComponent(PhysicsNode *node, double mass, double maxSpeed, double resistanceCoefficient, double windage)
Represents the physical state of an object simulated by the Bullet library. Contains the btTransform ...
void setMaxSpeed(double maxSpeed)
Handles calculation of air friction.
void accelerate(const Vec3 &acceleration, api::VelocityComponent::MaxSpeedHandling handling, const std::function< void(void)> &callback)
void decelerate(const Vec3 &deceleration, api::VelocityComponent::DecelerationHandling handling, const std::function< void(void)> &callback)