Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Rotation of a 3d angle.

$
0
0

@MuntyScruntFundle wrote:

Hi folks. I'm sure this answer is out there a hundred times, but I'm struggling to find anything that makes sense. I'm pretty sure this is because I'm a bit thick!

I'm trying to create a 3D, non friction steering system. I have an object moving between arbitrary points without any problem, but I'm struggling to add steering.

In a 2D project I just hold a steering value as a single of radians, and I add or reduce this value by a thrust force, Turn this into a vector and multiply it into my Velocity.

This is exactly what I wan't to do in the 3D environment, but now I need a steering 3D vector, which I need to rotate. That's where I'm stuck.

Is there a magic way to achieve this, (rotate 3D vector towards xyz by rr radians), do I need to do this as a manual process, or should I be using a Matrix translation?

I guess if I start with a vector of 0,1,0 and CreateRotation(xx,yy,zz) that's what I'm looking for? Is the resulting vector the same length?

Brain at boiling point!!

Any help with this would be great.

Many thanks.

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles