mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 23:13:26 +00:00
Refactors the projectile prediction engine by introducing an interface and making the legacy implementation more flexible. The legacy engine is updated to allow for coordinate system customization through virtual methods, enabling usage in different game environments. Also introduces vcpkg support for easier dependency management and adds boost-asio as a dependency.
17 lines
316 B
C++
17 lines
316 B
C++
//
|
|
// Created by Vlad on 6/9/2024.
|
|
//
|
|
|
|
#pragma once
|
|
#include "omath/vector3.hpp"
|
|
|
|
namespace omath::projectile_prediction
|
|
{
|
|
class Projectile final
|
|
{
|
|
public:
|
|
Vector3<float> m_origin;
|
|
float m_launch_speed{};
|
|
float m_gravity_scale{};
|
|
};
|
|
} // namespace omath::projectile_prediction
|