Game Development Community

AIPlayer - broken rotation - RESOLVED (THREED-2482)

by Ivan Mandzhukov · in Torque 3D Professional · 01/08/2011 (1:35 pm) · 32 replies

I am working with the AIPlayer these days.
I was trying to implement a chase logic with continious setMoveDestination() calls.
The positioning works correct,but there is a bug in the rotation stuff.
When move->yaw is arround 0 and 6,28(M_2PI_F),the rotation works in a reverse order,some sort of extrapolation instead of interpolation.

How to repreduce it:
1. spawn a bot.
2. schedule setAimLocation(%player.position) for each 30ms
3. go arround the bot

Do you see a jerk rotation?
Page«First 1 2 Next»
#21
06/26/2014 (8:00 am)
@james:
I just added this a few days ago without any trouble. My suggestion is to double check the position of the code changes esp. from #4 above - that one could really jack things up...

I'd post mine but it's pretty heavily modded...
#22
06/26/2014 (8:59 am)
OK. If you are not having trouble making the changes then maybe I didn't do it correctly. If you are saying the code posted originally works for you then ill play with it. Would be cool though if someone would check in a permanent fix, but then again it does not look hard to do if I just spend some time on it.

Thanks
#23
06/26/2014 (11:11 am)
Someone have a look at line 6278 ...
#24
06/26/2014 (2:26 pm)
I commented that line out and re ran, it helped to not swing along Z, but on my end, the camera is still swing up and down. All I see all over the player class is Z rotations, where does it process Y axis?
#25
06/26/2014 (3:20 pm)
I take that back, the camera is still spinning on the Z. Seriously, I just spawn in and so much as move the mouse a hair and it spins to the left and swing down or up and difficult to control. Not sure where its going wrong here, ill try to spend more time on it.
#26
06/26/2014 (5:23 pm)
not sure this helps. I download build 3.5.1 , the latest version, and still everything work well. Not checked other things, only the player movement and cam.
#27
06/26/2014 (5:56 pm)
Ok, well ill just download it all again and recompile. Maybe I had a bad download.

Thanks
#28
06/26/2014 (6:04 pm)
I downloaded the precompiled version, may be is different?
#29
06/26/2014 (6:17 pm)
I once had an issue with a spinning camera in first person ... turned out to be my optical mouse ...
#30
06/26/2014 (8:00 pm)
I have thought of that, i'm on a laptop but i'm using a wireless mouse. I was just playing Diablo3 earlier and it worked fine, however that is not a fps game...

I will look into it, looks like its only on my end.

Thanks everyone.
#31
06/26/2014 (8:08 pm)
Wow I cant believe that, I turned off my wireless mouse, and just used the mousepad on my laptop and its fine now. Sorry for all of this guys.

Thanks
#32
06/27/2014 (5:53 am)
lol.
I knew I'd seen this once before ... at first couldn't remember the obscure reason. ;)
Page«First 1 2 Next»