I've also tried different future offsets but it seemed not to improve rotational tracking along the curve.
The chosen Up vector is a result for having the game plane being active only for the X,Y axis. So in my case Z should be the only rotation axis for such plane.
Search found 7 matches
- Mon Dec 19, 2011 10:08 pm
- Forum: Questions and Help
- Topic: moving an object via waypoints
- Replies: 10
- Views: 6765
- Mon Dec 19, 2011 7:53 pm
- Forum: Questions and Help
- Topic: moving an object via waypoints
- Replies: 10
- Views: 6765
Re: moving an object via waypoints
I've took another approch which seems to solve the problem: Vector3 D = (last_position - mover.TargetPosition); Vector3 Right = Vector3.Cross(Vector3.UnitZ, D); Vector3.Normalize(ref Right, out Right); Vector3 Backwards = Vector3.Cross(Right, Vector3.UnitZ); Vector3.Normalize(ref Backwards, out Back...
- Mon Dec 19, 2011 4:47 pm
- Forum: Questions and Help
- Topic: moving an object via waypoints
- Replies: 10
- Views: 6765
Re: moving an object via waypoints
Hello Norbo, With the code bellow I am able to see some rotation but it's all wrong. I also suspect that the lookat matrix contains a translate component as i see the model runs on a much bigger curve than it should. Update routine protected override void Update(GameTime gameTime) { if (GamePad.GetS...
- Sun Dec 18, 2011 9:36 pm
- Forum: Questions and Help
- Topic: moving an object via waypoints
- Replies: 10
- Views: 6765
Re: moving an object via waypoints
The goal is to have a ship(NPC) flying a curve and always looking at its flight direction.
- Sun Dec 18, 2011 9:20 pm
- Forum: Questions and Help
- Topic: moving an object via waypoints
- Replies: 10
- Views: 6765
Re: moving an object via waypoints
Hello, I've been playing with the PathFollowingDemo.. I've been able to figure out position calculation along the curve. I am though unable to figure out how to make the rotator to look at the curve. Coming from Unity the bellow is what I used to successfully have the ship lookat the flight directio...
- Sun Dec 18, 2011 7:01 am
- Forum: Questions and Help
- Topic: moving an object via waypoints
- Replies: 10
- Views: 6765
Re: moving an object via waypoints
Thanks Norbo, for the prompt and detail answer,
I'll check it out.
I'll check it out.
- Sat Dec 17, 2011 9:58 pm
- Forum: Questions and Help
- Topic: moving an object via waypoints
- Replies: 10
- Views: 6765
moving an object via waypoints
Hello, Using the BEPU simulation, I would like to know what would be the suggested approach to have an object moved via N waypoints using a transpolated path? (Such object can be shot at and should bounce off it's flight path(might hit others as well) and then might resume it's flight again.) Thanks...