My program has a few objects modeled using the btConvexHullShape(actually classes derived from it). I need to access the absolute transformed world positions of all the points in these objects. How do I do this?
Here is what I have thought so far:
-Calculate and store the local position of all the points relative to the origin of the object.
-Calculate the current position of all the points by rotating them using quatRotate() and adding the current origin using getOrigin()
Only problem with this is I don't know how to get the local position of the points. How do I calculate the initial origin of a covex hull shape (before it's set by the user)?
Is this all a completely ridiculous way of doing this?
I am very new to this so forgive me if this is a stupid question (and hopefully point me in the right direction).
Thanks!
Ps: Stuff is due tommorrow so some early help would be very much appretiated