Jump to content
gc8

Accurate moving

Recommended Posts

Hi

Is it possible to make AI soldier move to position accurately? When I use the commands doMove/moveTo the AI will move near but not exactly on pos.

 

thx!

 

 

 

Share this post


Link to post
Share on other sites
1 hour ago, gc8 said:

Hi

Is it possible to make AI soldier move to position accurately? When I use the commands doMove/moveTo the AI will move near but not exactly on pos.

 

thx!

 

They always move within 10cm of where I order them.

 

 

Cheers

Share this post


Link to post
Share on other sites

@Grumpy Old Man Ok thanks I found out what the issue was. If you put there some object and try to move the AI next to that object then the AIs position should be off. So I guess it's the path finding that causes that inaccuracy with the movement

 

Share this post


Link to post
Share on other sites
32 minutes ago, gc8 said:

@Grumpy Old Man Ok thanks I found out what the issue was. If you put there some object and try to move the AI next to that object then the AIs position should be off. So I guess it's the path finding that causes that inaccuracy with the movement

 

Pathfinding is perfectly fine, it's the (for some reason extremely generous) bounding boxes that cause what you described.

YcA9ZNL.png

Outer lines are from boundingBox, inner lines are from boundingBoxReal.

Guess we need boundingBoxForReal...

 

Try moving an AI close to this one.

 

Cheers

  • Haha 1

Share this post


Link to post
Share on other sites
5 minutes ago, Grumpy Old Man said:

Try moving an AI close to this one.

 

I was unable to move the AI close to the ammo crate. Tried 5 times where the AI always kept some distance

Share this post


Link to post
Share on other sites

If you untick the "Enable simulation" of the ammo crate the AI is able to move right next to it. Even couple of times I had the AI stand over the crate.

 

  • Like 1

Share this post


Link to post
Share on other sites
1 hour ago, Grumpy Old Man said:

Outer lines are from boundingBox, inner lines are from boundingBoxReal.

Hey Grumpy, what's the code to display the bounding box lines in your screen shot?

Share this post


Link to post
Share on other sites

This is strange, while disabling the simulation in editor makes the object non blocking for path finding, if I use attachTo command and then detach the object becomes blocking again even simulation is still false (simulationEnabled). 

weird arma things...

 

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×