mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
Moves target prediction logic into engine traits, improving modularity. This change consolidates target position prediction within the engine traits, allowing for a more flexible and maintainable design. This eliminates redundant code and simplifies the core prediction engine by delegating target movement calculations to the appropriate trait.
17 lines
312 B
C++
17 lines
312 B
C++
//
|
|
// Created by Vlad on 6/9/2024.
|
|
//
|
|
|
|
#pragma once
|
|
#include "omath/vector3.hpp"
|
|
|
|
namespace omath::projectile_prediction
|
|
{
|
|
class Target final
|
|
{
|
|
public:
|
|
Vector3<float> m_origin;
|
|
Vector3<float> m_velocity;
|
|
bool m_is_airborne{};
|
|
};
|
|
} // namespace omath::projectile_prediction
|