IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Global position from actor's frame position
Lucas Simão
post Nov 6 2009, 08:52 PM
Post #1


Member
**

Group: Members
Posts: 6
Joined: 3-November 09
Member No.: 9,747



Hi,
i have the local positions of the shapes of a NxActor. But this positions aren't in relation to the universal space. How i can to translate from actor's frame position to global position. Look at:

NxShape *mesh = this->actor->getShapes()[0];

NxMat34 pose = mesh->getGlobalPose();
void* ptr = mesh->userData;
NxConvexMeshDesc meshDesc = *((NxConvexMeshDesc*)(ptr));

NxU32 nbVerts = meshDesc.numVertices;
NxVec3* points = (NxVec3 *)meshDesc.points;

The *points variable is a vector of NxVec3 representing the positions of the vertices of the actor in relation to the actor's frame. How i can obtain the global position of these points?
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Copyright © 2008 NVIDIA® Corporation.  Terms of Use | Legal Info | Privacy Policy Time is now: 24th November 2009 - 01:12 AM