Well, I've asked this in my "answered post" and I'm asking this again in hope that someone could help me out hehe
ive been experimenting with the sliding collision from sparky's example. i changed this code
if (dbKeyState(32) == 1 )
{
vx = vx + dbCos(angy)*5;
vz = vz - dbSin(angy)*5;
}
if (dbKeyState(30) == 1 )
{
vx = vx - dbCos(angy)*5;
vz = vz + dbSin(angy)*5;
}
if (dbKeyState(31) == 1 )
{
vx = vx - dbSin(angy)*5;
vz = vz - dbCos(angy)*5;
}
if (dbKeyState(17) == 1 )
{
vx = vx + dbSin(angy)*5;
vz = vz + dbCos(angy)*5;
}
with this code
if (dbKeyState(17) == 1 && acc <= 2)
{
acc = acc + 0.01;
dbMoveObject ( 2, acc );
}
dbMoveObject (2, acc);
(i know it's a sorry excuse for an accelerating object but i just want to show or did a work around for acceleration since im running out of time)
but to my surprise, the sphere goes through the walls or it climbs the walls occasionally at a certain speed. ive initialized acc for double btw (if anyone would asked)
what to do kind sirs?