i6engine  1.0
VelocityComponent.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  i6e::api::VelocityComponent
 Component for objects with more complex velocity handling than just setting an impulse, e.g. a car For creating a VelocityComponent, these keys are possible:

Name Required Type Description Public
acceleration yes double acceleration of this GameObject, in m / sē yes
deceleration no double breaking acceleration of this GameObject, in m / sē yes
maxSpeed yes double maximum speed this GameObject can reach, in m / s yes
resistanceCoefficient no double resistance coefficient, default: 0.6 yes
windage no double windage of this GameObject, default: 0.8 mē yes
handling no int handling for reaching maximum speed, keep maximum speed or stop acceleration to roll out, default: 0 (= KeepSpeed) yes