View Single Post
Old 11th September 2007, 11:39 PM   #2
lisa
Senior Member
Professional user
 
lisa's Avatar
 
Join Date: Mar 2005
Location: Phoenix, AZ
Posts: 917
Default Re: How to move an object to the origin and back

What happens if you de-reference the pointer to the object center?

i.e.

Point3 ptCentre = *(ac_object_get_centre(obj));
translate_object_zero(obj);
translate_object(obj, &ptCentre);
lisa is offline   Reply With Quote