Small collision poblem
Blitz3D Forums/Blitz3D Programming/Small collision poblem
| ||
When I run the following code, I have a problem.
Collisions cam_col,level_col,2,2
Global collided=False
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
If KeyDown(Kright) Then TurnEntity cam,0,-1,0
If KeyDown(Kleft) Then TurnEntity cam,0,1,0
If KeyDown(Kup) Then MoveEntity cam,0,0,1
If KeyDown(Kdown) Then MoveEntity cam,0,0,-1
If Not EntityCollided(cam,level_col) Then
MoveEntity cam,0,-0.5,0
EndIf
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
When the camera is touching the terrain, it 'vibrates' really quickly. This only happens when it is colliding with the terrain, though. I know this is a small problem but can somebody please help me because every time I try and do something similar to this I encounter the same problem...:/ |