1
This commit is contained in:
parent
e6963566eb
commit
25311965c5
@ -60,6 +60,12 @@ void Movement::CalcTargetPos(float distance)
|
||||
Position pos = owner_->GetPos();
|
||||
glm::vec3 start = owner_->GetPos().ToGlmVec3();
|
||||
glm::vec3 end = pos.AddGlmVec3(owner_->GetMoveDir() * distance).ToGlmVec3();
|
||||
if (end.x < 0.0f) {
|
||||
end.x = 0.0f;
|
||||
}
|
||||
if (end.z < 0.0f) {
|
||||
end.z = 0.0f;
|
||||
}
|
||||
|
||||
bool hit_result = false;
|
||||
MovePathPoint point;
|
||||
|
Loading…
x
Reference in New Issue
Block a user