lehthanis
02-02-2008, 08:42 PM
One of the challenges of thsi exporter I'm building is that it exports multiple objects to a single object file, and uses these attributes and mesh commands that I've been struggling with to specify moving parts and surface properties etc...
For example, a flight stick in a cockpit to the sim object is just a collection of triangles that are part of the object. The object has one origin and thats always 0,0,0 no matter what the width, height, or length of the object or how it relates to 0,0,0...If I want to make that flight stick rotate along its base, I have to specify an offset from its center mass that points to the pivot point.
So what I need to calculate is the X, Y, and Z offset from what 3ds considers the selection center of the object to the actual pivot point. Screenshots included. First shows the pivot, second shows the selection center...thats what I need to calculate the distance between. I have the object as a SnapshotAsMesh
For example, a flight stick in a cockpit to the sim object is just a collection of triangles that are part of the object. The object has one origin and thats always 0,0,0 no matter what the width, height, or length of the object or how it relates to 0,0,0...If I want to make that flight stick rotate along its base, I have to specify an offset from its center mass that points to the pivot point.
So what I need to calculate is the X, Y, and Z offset from what 3ds considers the selection center of the object to the actual pivot point. Screenshots included. First shows the pivot, second shows the selection center...thats what I need to calculate the distance between. I have the object as a SnapshotAsMesh
