Re: Rotation always relative to the world
- From: 6tc1@xxxxxxxxxxxxxxxx
- Date: 16 Nov 2005 19:35:20 -0800
Hi Phil - thanks for the reply.
Once I got the samples installed I couldn't figure out anything about
how to use ModelViewerCamera or ArcBall. I see that ArcBall has a
method:
public static Quaternion QuaternionFromBallPoints(Vector3 from,
Vector3 to)
{
float dot = Vector3.Dot(from, to);
Vector3 part = Vector3.Cross(from, to);
return new Quaternion(part.X, part.Y, part.Z, dot);
}
But I really have no clue as to how to use these in my project. Also,
if I ever do figure out how to use them - do I just need to include a
reference to some sample DirectX library or can I get the full source
code for those two classes in isolation and use them directly?
Thanks and sorry for all the questions,
Novice
.
- Follow-Ups:
- Re: Rotation always relative to the world
- From: punkrock
- Re: Rotation always relative to the world
- References:
- Rotation always relative to the world
- From: 6tc1
- Rotation always relative to the world
- Prev by Date: Re: Updating the colour of a vertexbuffer
- Next by Date: Re: Rotation always relative to the world
- Previous by thread: Rotation always relative to the world
- Next by thread: Re: Rotation always relative to the world
- Index(es):