![]() ![]() |
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? |
|
|
|
![]() ![]() |
|
Copyright © 2008 NVIDIA® Corporation. Terms of Use | Legal Info | Privacy Policy | Time is now: 24th November 2009 - 01:12 AM |