Smoothare acceleration
This commit is contained in:
@@ -108,6 +108,7 @@ void Systems::PlayerSystem::UpdateEntity(double dt, EntityID entity, EntityID pa
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
transform->Position -= Ship_Right * (float)dt * Euler.z;
|
||||||
if(Euler.z < 1.5f && Euler.z > -1.5f)
|
if(Euler.z < 1.5f && Euler.z > -1.5f)
|
||||||
transform->Orientation = glm::angleAxis<float>(0,glm::vec3(0,0,1));
|
transform->Orientation = glm::angleAxis<float>(0,glm::vec3(0,0,1));
|
||||||
else if(Euler.z < 0.f)
|
else if(Euler.z < 0.f)
|
||||||
|
|||||||
Reference in New Issue
Block a user