VPhysics crashes in 2 points with NULL access or other access violations.
First place is: fourwheelvehiclephysics.cpp inside bool CFourWheelVehiclePhysics::Think()
m_pVehicle->Update( gpGlobals->frametime, m_controls);
which is: void IPhysicsVehicleController::Update( float dt, vehicle_controlparams_t &controls )
The second place is any function that uses: IPhysicsFrictionSnapshot *IPhysicsObject::CreateFrictionSnapshot()
To test on any Source Engine game that uses VPhysics x64 and has the model + vehiclescript use:
ent_create prop_vehicle_jeep model models/buggy.mdl vehiclescript scripts/vehicles/jeep_test.txt modelscale 0.5
VPhysics crashes in 2 points with NULL access or other access violations.
First place is: fourwheelvehiclephysics.cpp inside
bool CFourWheelVehiclePhysics::Think()m_pVehicle->Update( gpGlobals->frametime, m_controls);which is:
void IPhysicsVehicleController::Update( float dt, vehicle_controlparams_t &controls )The second place is any function that uses:
IPhysicsFrictionSnapshot *IPhysicsObject::CreateFrictionSnapshot()To test on any Source Engine game that uses VPhysics x64 and has the model + vehiclescript use:
ent_create prop_vehicle_jeep model models/buggy.mdl vehiclescript scripts/vehicles/jeep_test.txt modelscale 0.5