He may have been looking for a code snippet where the object stops when colliding with the ground.
That's all I'm trying to say.
So your code without bounce would look like:
That's all I'm trying to say.
So your code without bounce would look like:
Graphics3D 640,480,16 Global Gravity# = -0.05 Global YSpeed# = 0 Collisions 1,2,2,2 Cam=CreateCamera() Global ball = CreateSphere() light = CreateLight() PositionEntity ball,0,10,0 EntityType ball,1 PositionEntity cam,0,10,-25 CameraClsColor cam,0,255,255 ground=CreatePlane() EntityType ground,2 While Not KeyHit(1) UpdateGravity() ;TranslateEntity ball,0,-0.1,0 UpdateWorld If CountCollisions(ball) ySpeed = 0 EndIf RenderWorld Flip Wend End Function UpdateGravity() Yspeed = YSpeed + Gravity TranslateEntity Ball,0,yspeed,0 End Function