Timeline for Rotate 3D Model from a custom position
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 23, 2011 at 11:26 | comment | added | mikidelux | Yes, I mean translate the world coordinates of the point you wish to be your center of rotation to the origin ( 0,0,0 ). The sample code would be exactly what Dan answered. What you have to do (the concept is much more important than the code) is realize that the center of your object is in the (0,0,0) (that's why it rotates on it's own axis, because it is standing in the axis of rotation). Then to bring one corner of it to the origin you have to translate HALF of the object towards it. Ok my english is bad, I hope you understand what I'm trying to tell you. | |
Nov 23, 2011 at 11:13 | comment | added | Nipuna | By point you mean the world coordinate? can u post some sample code | |
Nov 23, 2011 at 11:02 | history | answered | mikidelux | CC BY-SA 3.0 |