|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Velocity component for simple kinematic motion. More...
#include <Velocity.hpp>
Public Member Functions | |
| Velocity ()=default | |
| Default constructor (zero velocity). | |
| Velocity (const glm::vec3 &lin) | |
| Constructs with linear velocity only. | |
| Velocity (const glm::vec3 &lin, const glm::vec3 &ang) | |
| Constructs with both linear and angular velocity. | |
Public Attributes | |
| glm::vec3 | linear {0.0f} |
| Linear velocity (units per second). | |
| glm::vec3 | angular {0.0f} |
| Angular velocity (radians per second). | |
Velocity component for simple kinematic motion.
Stores linear and angular velocity. The SDK's VelocitySystem integrates it into Transform every Update in play mode; entities owned by the physics solver (RigidBody2D) are skipped so the two never double-move an entity.
Definition at line 41 of file Velocity.hpp.
|
default |
Default constructor (zero velocity).
|
inlineexplicit |
Constructs with linear velocity only.
| lin | Linear velocity vector |
Definition at line 57 of file Velocity.hpp.
References linear.
|
inline |
Constructs with both linear and angular velocity.
| lin | Linear velocity vector |
| ang | Angular velocity vector |
Definition at line 64 of file Velocity.hpp.
| glm::vec3 esengine::ecs::Velocity::angular {0.0f} |
Angular velocity (radians per second).
Definition at line 48 of file Velocity.hpp.
Referenced by Velocity(), and EMSCRIPTEN_BINDINGS().
| glm::vec3 esengine::ecs::Velocity::linear {0.0f} |
Linear velocity (units per second).
Definition at line 44 of file Velocity.hpp.
Referenced by Velocity(), Velocity(), and EMSCRIPTEN_BINDINGS().