mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-14 07:23:26 +00:00
refactored projectile prediction
This commit is contained in:
22
include/uml/prediction/Target.h
Normal file
22
include/uml/prediction/Target.h
Normal file
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// Created by Vlad on 6/9/2024.
|
||||
//
|
||||
|
||||
#pragma once
|
||||
#include "uml/Vector3.h"
|
||||
|
||||
|
||||
namespace uml::prediction
|
||||
{
|
||||
class Target final
|
||||
{
|
||||
public:
|
||||
|
||||
[[nodiscard]]
|
||||
Vector3 PredictPosition(float time, float gravity) const;
|
||||
|
||||
Vector3 m_origin;
|
||||
Vector3 m_velocity;
|
||||
bool m_isAirborne{};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user