1
This commit is contained in:
parent
4b9fb4a4d7
commit
8e64f163ec
@ -2587,7 +2587,8 @@ void Creature::AutoNavigation(const glm::vec3& target_pos, float speed,
|
|||||||
Global::Instance()->verify_set_pos = 0;
|
Global::Instance()->verify_set_pos = 0;
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
a8::XPrintf("speed:%d src_pos:%f,%f,%f new_pos:%f,%f,%f move_distance:%f src_distance:%f\n",
|
a8::XPrintf("speed:%d src_pos:%f,%f,%f new_pos:%f,%f,%f move_distance:%f src_distance:%f "
|
||||||
|
"target_pos:%f,%f,%f\n",
|
||||||
{
|
{
|
||||||
context->speed,
|
context->speed,
|
||||||
context->src_pos.x,
|
context->src_pos.x,
|
||||||
@ -2597,7 +2598,10 @@ void Creature::AutoNavigation(const glm::vec3& target_pos, float speed,
|
|||||||
new_pos.y,
|
new_pos.y,
|
||||||
new_pos.z,
|
new_pos.z,
|
||||||
move_distance,
|
move_distance,
|
||||||
context->distance
|
context->distance,
|
||||||
|
context->target_pos.x,
|
||||||
|
context->target_pos.y,
|
||||||
|
context->target_pos.z
|
||||||
});
|
});
|
||||||
#endif
|
#endif
|
||||||
bool ok = std::abs(move_distance - context->distance) < 0.0001f;
|
bool ok = std::abs(move_distance - context->distance) < 0.0001f;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user