absolute translation

Started by fireside, October 14, 2010, 05:05:14 AM

Previous topic - Next topic

fireside

I've forgotten how to do an absolute translation.  It's basically a relative motion, so how do I do that when the object is not at the point of origin?  Rotation doesn't matter in this case.  I just need to either get it back to the origin or compensate somehow.
click here->Fireside 7 Games<-

EgonOlsen


obj.clearTranslation();
obj.translate(...);

fireside

click here->Fireside 7 Games<-

Socke

And with rotation?

I need the position and rotation for network play.

I try object.getTranslationMatrix() -> network -> object.setTranslationMatrix() but this not work.

I think object.getTranslation() -> network -> object.clearTranslation() -> object.translate() work (not tested) but how send the rotation?

EgonOlsen

As a matrix. You can get and set the rotation matrix.