Hi
I cant get wheel position and rotation from this function.It trigger a breakpint at setting quaternion.
void CHavokPhysic::UpdateVehicleWheel(CVehicleSimulator* C,hkpVehicleInstance* pVehicle)
{
hkVector4 pos;
hkQuaternion rot;
for(int i=0;i<C->GetVehicle()->GetNumWheels();i++)
{
pVehicle->calcCurrentPositionAndRotation(pVehicle->getChassis(),pVehicle->m_suspension,i,pos,rot);
}
}
call stack:
FrontGame.exe!hkQuaternion::setAxisAngle(const hkVector4 & axis={...}, float angle=-0.00000000) Line 15 + 0x2a bytes C++
FrontGame.exe!hkpVehicleInstance::calcCurrentPositionAndRotation(const hkpRigidBody * chassis=0x025d0580, const hkpVehicleSuspension * suspension=0x003e8390, int wheelNo=0, hkVector4 & posOut={...}, hkQuaternion & rotOut={...}) Line 1033 C++



