|
Post by tezza73 on Jul 10, 2019 6:43:35 GMT
Hi,
When i add an event to finish on move on the move to position component...it seems like the event occurs meters before the character finishes the move.
For example i want the character object to disable on finishing move but they disable metres before the destination spot.
Any Ideas?
|
|
|
Post by tezza73 on Jul 11, 2019 4:48:57 GMT
Also the rotate to target does not work consistently....sometimes they rotate and others time they dont...
|
|
|
Post by Invector on Jul 11, 2019 16:33:16 GMT
Can you make a small clip showing how you're doing this? make sure to include the inspector
|
|
|
Post by tezza73 on Jul 15, 2019 7:29:27 GMT
|
|
|
Post by tezza73 on Jul 15, 2019 7:46:18 GMT
|
|
|
Post by tezza73 on Jul 15, 2019 7:47:00 GMT
I suspect it has to do with the nav mesh agent....you see when the soldier character vanishes the nav mesh agent disables....
|
|
|
Post by Invector on Jul 15, 2019 14:24:14 GMT
The video is private, we can't see
|
|
|
Post by tezza73 on Jul 15, 2019 14:44:19 GMT
|
|
|
Post by tezza73 on Jul 15, 2019 14:44:59 GMT
|
|
|
Post by tezza73 on Jul 15, 2019 14:45:30 GMT
Sorry.....made public now..
|
|
|
Post by Invector on Jul 15, 2019 15:51:35 GMT
I see... It looks like the OnFinishMove is being called way before it reaches the destination, try following the info box in the AI Move To Position component and calling the StopFSM method in the OnStartMove Event, I think there is a conflict even though the FSM Controller is disabled, it could be running a routine.
|
|
|
Post by tezza73 on Jul 16, 2019 4:29:59 GMT
|
|
|
Post by tezza73 on Jul 16, 2019 4:31:16 GMT
StopFSM didnt help...but thats ok...more important is to get the rotate to position working...see video above my characters wont rotate
|
|
|
Post by Invector on Jul 16, 2019 18:50:22 GMT
I did a quick test here and it seems to be working as expected... Let's review the steps again: 1- make sure the fsm and controller are both enabled 2- use the StopFSM in the OnStartMove and StartFSM in the OnFinishMove events. 3- You can use the MoveToOnStart option to call the PositionTarget Name just to quickly test if it's working
|
|
|
Post by Invector on Jul 16, 2019 18:51:52 GMT
Btw I'm moving this thread to the FSM AI section
|
|