29 lines
767 B
C++
29 lines
767 B
C++
#pragma once
|
|
|
|
#include <types/entity.h>
|
|
#include "animation/scriptedMove.h"
|
|
#include "J3ML/LinearAlgebra/Vector3.h"
|
|
|
|
|
|
//Movable Object.
|
|
class Moby : public Entity {
|
|
public:
|
|
Moby(): Entity(), velAngle({0,0,0})
|
|
{
|
|
|
|
}
|
|
Angle angle = {0,0,0}; //Pitch Yaw Roll, The orientation of the entity in the world,
|
|
Angle velAngle = {0,0,0}; //The angle of an entities velocity.
|
|
LinearAlgebra::Vector3 Velocity;
|
|
LinearAlgebra::Vector3 upVector = {0.0f,1.0f,0.0f};
|
|
ScriptedMove scriptedMove;
|
|
void move(Angle a, float speed);
|
|
Angle fAngle(); // forward angle
|
|
Angle bAngle(); // back angle
|
|
Angle lAngle(); // left angle
|
|
Angle rAngle(); // right angle
|
|
void doScriptedMovement();
|
|
Position simulateMove(Angle a, float speed);
|
|
};
|
|
|