Is compond object is only way to change center of mass?
Are there other way?
Thank you.
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Code: Select all
points.AllocateUnsafely() = new Vector3(0f,0f,0f);
points.AllocateUnsafely() = new Vector3(0.70710677f,0.70710677f,0f);
points.AllocateUnsafely() = new Vector3(1.847759f,0.7653669f,0f);
points.AllocateUnsafely() = new Vector3(1.847759f,-0.7653669f,0f);
points.AllocateUnsafely() = new Vector3(0.70710677f,-0.70710677f,0f);
points.AllocateUnsafely() = new Vector3(0f,0f,1f);
points.AllocateUnsafely() = new Vector3(0.70710677f,0.70710677f,1f);
points.AllocateUnsafely() = new Vector3(1.847759f,0.7653669f,1f);
points.AllocateUnsafely() = new Vector3(1.847759f,-0.7653669f,1f);
points.AllocateUnsafely() = new Vector3(0.70710677f,-0.70710677f,1f);
Same as anything else- stick them in a Compound with an offset. If you want to know the center that the ConvexHull got recentered to, the ConvexHullHelper outputs it in the 'center' out parameter.1 Are there ways to assign center of mass of hull?
Not sure what you mean. If you mean making a particular point a compound's center of mass, it's always (0,0,0) in the compound's local space. To make the center of mass of a compound shift relative to its convex children, shift the children.2 Or I want to make a point (0,0,0) center by compound object. How I get location of a point (0,0,0) from the center of mass.