Hi, I'm making a little game where the player is transforming 2D-objects into 3D. It sounds simple enough, but I find it very hard.
I'm using this line of code:
effect.World = worldMatrix * transforms[mesh.ParentBone.Index];
where worlMatrix could be something like (1,000000.1,1) to display a 3D-object as a 2D-object. But this causes the object to automaticly position itself at Z=0.
Does anyone know how I can resize/transform an object without moving it?
regardes,
Måns Wide