0
I’m trying to store the class PxFixedJoint
in a std::vector
with the method push_back
. But the vector is always empty, simply adds nothing.
Down with the code.
// C++
// Declaração do vector para armazenar os joints
std::vector<physx::PxFixedJoint*> m_lpJoints;
// Criando um joint
physx::PxFixedJoint* joint = physx::PxFixedJointCreate(*physics, m_pPhysicsBody, physx::PxTransform(-offset), _target, physx::PxTransform(offset));
// Armazenando
m_lpJoints.push_back(joint);
// Verificando o tamanho do vetor
std::cout << "size: " << m_lpJoints.size() << std::endl;
Did you solve the problem? Because apparently there’s nothing wrong with the code.
– bcsanches