NxD6JointDesc& NxaD6JointDescription::ConvertToNative() { NxD6JointDesc d6Desc; //JointDescription Stuff d6Desc.actor[0] = Actor[0]->nxActor; d6Desc.actor[1] = Actor[1]->nxActor; d6Desc.flags = (NxU32)Flags; // Set lots of other stuff here. return d6Desc; } NxaJoint^ NxaD6JointDescription::CreateJoint(NxScene* scenePtr) { NxD6JointDesc& d6Desc = ConvertToNative(); NxJoint* jointPtr = scenePtr->createJoint(d6Desc return NxaJoint::CreateFromPointer(jointPtr); }