I'm working with PhysX in C++ and am getting the error,cannot instantiate abstract class
in the following code:
std::vector < PxJoint* > joints;
PxD6Joint* j = PxD6JointCreate(*gPhysics, a0, t0, a1, t1);
joints.push_back (j);
(PxD6Joint)(joints[0])->setDrivePosition(PxTransform()); //error here
The code is just an example. PxD6joint is an abstract class that inherits from PxJoint. I figure there must be some way to access the public members of &j
via joints[0]
, but, if there is, I'm not doing it right.