#2
|
|||
|
|||
You can use the matrix.preEuler methods to rotate objects relative to arbitrary coordinate frames. Here is how you would roll object1 relative to object2's coordinate frame:
Code:
m = object2.getMatrix() m.preEuler(0,0,1) object1.setQuat(m.getQuat()) Let me know if I misunderstood your question or you need more specific examples. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
retrieve Object names | Geoffrey | Vizard | 11 | 12-11-2009 04:26 AM |
how to pick up the object, move and rotate using mouse | nasr | Vizard | 5 | 05-05-2009 03:11 AM |
reseting an object | durf | Vizard | 3 | 03-17-2009 11:48 PM |
Child Object Rotation | paulgoldberg | Vizard | 5 | 09-05-2006 11:33 AM |
rotate to object | jargon | Vizard | 1 | 08-08-2005 12:20 PM |