(Model) Rotation with an Offset
Posted: Sun Jan 08, 2012 5:36 pm
Hi again Norbo:)
I am in need of some help, but I fear it may involve a greater understanding of linear algebra than I currently have. This is what I am trying to do:
1. Take an object (from a transformable shape, specifically) with an offset AND rotation (rotation is handled by the BEPU entity).
2. Display that model with the proper offsets
I am running into two issues:
I cannot simply use the WorldTransform of my entity, because it does not have scale applied (any possibility it will, someday?), so I have to build my world matrix from scratch (I think). The problem with that, is that I do not know how to get a world matrix that includes the entity's rotation/orientation, mainly because all I have been doing is Matrix.CreateTranslation, Matrix.CreateScale etc.
I feel there is something simple, be it a concept or technique, that I am missing here.
I am in need of some help, but I fear it may involve a greater understanding of linear algebra than I currently have. This is what I am trying to do:
1. Take an object (from a transformable shape, specifically) with an offset AND rotation (rotation is handled by the BEPU entity).
2. Display that model with the proper offsets

I am running into two issues:
I cannot simply use the WorldTransform of my entity, because it does not have scale applied (any possibility it will, someday?), so I have to build my world matrix from scratch (I think). The problem with that, is that I do not know how to get a world matrix that includes the entity's rotation/orientation, mainly because all I have been doing is Matrix.CreateTranslation, Matrix.CreateScale etc.

I feel there is something simple, be it a concept or technique, that I am missing here.