moving origin only in COB
Posted: 04 Nov 2009, 13:39
Is it possible to move the origin of an object using COB? If so, how?
Open Source Realtime Strategy Game Engine
https://springrts.licho.eu/phpbb/
You can move object with the "move" command. If you need to move the center of rotation of an object without any of its faces moving, just add a faceless second object, just below the object you wanna move the origin of, in the piece hierarchy, then move the one object one way and the other object in the opposite way, and when you wanna apply a "turn", instead of turning the one object, turn the other one.Well there is that. Damn your superior lateral thinking!zwzsg wrote:You can move object with the "move" command. If you need to move the center of rotation of an object without any of its faces moving, just add a faceless second object, just below the object you wanna move the origin of, in the piece hierarchy, then move the one object one way and the other object in the opposite way, and when you wanna apply a "turn", instead of turning the one object, turn the other one.