PDA

View Full Version : Cube and Freeform collision



Kevinekss
06-02-2004, 07:48 PM
Hi how do you do a collision with cube and freeform i have cube1, that I control this cub, so I'm moving with cube and if the cube collision with freeform it doesn't do anything, i did like if is collision then collision1:=true;

so i have

if (isKeyDown(VK_UP) and (collision1=true) then Cube1.Move(0*deltatime);

if (isKeyDown(VK_UP) and (collision1=false) then Cube1.Move(-3*deltatime);

But if the cube is not in collision he still stops. Does somebody know what is wrong? Thanks Kevinekss