- const glm::quat &AngularVelocity() const noexcept { return angular_velocity; }
- void AngularVelocity(const glm::quat &) noexcept;
+ glm::vec3 AbsolutePosition() const noexcept {
+ return glm::vec3(chunk * Chunk::Extent()) + position;
+ }
+ glm::vec3 AbsoluteDifference(const Entity &other) const noexcept {
+ return glm::vec3((chunk - other.chunk) * Chunk::Extent()) + position - other.position;
+ }
+
+ /// direction is rotation axis, magnitude is speed in rad/ms
+ const glm::vec3 &AngularVelocity() const noexcept { return angular_velocity; }
+ void AngularVelocity(const glm::vec3 &) noexcept;