I'm getting the following errors...
"Entity not a physics object in CarInit"
"Empty pointer in RRInit"
I don't know how to fix it. So I really need your help guys. Whenever I load a new level it will pop up an error above. However, if I click ok the game works just fine.
But I want to solve this error once and for all.
btw, im using the car demo example. The error has something to do in this part of code.
action RRInit()
{
set(my,PASSABLE);
while (!pChassis) { wait(1);}
pRR=my;
InitWheel();
// make wheel constraint pointing up
wheelRR= phcon_add(PH_WHEEL, pChassis, my);
phcon_setparams1(wheelRR, my.x, vecUp, vecRight);
phcon_setparams2(wheelRR, vector(0,0,0), nullvector, vector(suspensionERP, suspensionCFM,0));
reset(my,PASSABLE);
//vec_set(my,vector(-426,-5788,69));
}
action CarInit()
{
player = me;
c_setminmax(my);
my.flags |= ZNEAR;
// build a car and wait til all wheels are ready
ChassisInit();
my.material = mat_metal;
while (wheelCounter<4) { wait(1); }
signallights();
UpdateSpeed(); // update rear wheel speed (continuous)
SpeedControl();// change speed (continuous)
SteerControl();// change heading (continuous)
}
I'm also getting pointer errors.
Because of this my car won't move.
Please help me.