lethil
01-25-2012, 07:02 PM
Howdy,
I'm currently working on trying to build a flying control system that will simulate forward propulsion like in the old X-Wing games. I'm running into a problem with Pawn.Velocity.
I'm able to get my rotation and acceleration to work correctly, but Pawn.Velocity seems to remember previous accelerations and slowly bleed them off.
For example, If I move straight ahead at a high speed and then yaw 45 degrees to the right, I'll start gaining momentum towards that 45 degree yaw, but Velocity still pushes me heavily in the previous direction. In addition, if I reduce my acceleration to 0,0,0 and yaw, pitch, or roll 45 degrees, I'll still move in that previous direction.
I attempted to replace my Pawn.Acceleration with Pawn.Velocity and just cut out the middle man. It worked decently enough, but it made for twitchy networking code. Ideally, if there's some property to eliminate momentum immediately, that'd be perfect!
Any help is appreciated and I'll be glad to elaborate on this further if I'm not making any sense.
Thanks!
I'm currently working on trying to build a flying control system that will simulate forward propulsion like in the old X-Wing games. I'm running into a problem with Pawn.Velocity.
I'm able to get my rotation and acceleration to work correctly, but Pawn.Velocity seems to remember previous accelerations and slowly bleed them off.
For example, If I move straight ahead at a high speed and then yaw 45 degrees to the right, I'll start gaining momentum towards that 45 degree yaw, but Velocity still pushes me heavily in the previous direction. In addition, if I reduce my acceleration to 0,0,0 and yaw, pitch, or roll 45 degrees, I'll still move in that previous direction.
I attempted to replace my Pawn.Acceleration with Pawn.Velocity and just cut out the middle man. It worked decently enough, but it made for twitchy networking code. Ideally, if there's some property to eliminate momentum immediately, that'd be perfect!
Any help is appreciated and I'll be glad to elaborate on this further if I'm not making any sense.
Thanks!