I was wondering if anyone could help me out with this. I have my FPS camera and a set of stairs, and I'm doing the usual linepick straight down to work out the cameras Y position.
What I'd like to do is have the camera 'bounce' slightly on each step rather than just snap to picked Y position. Hope that makes sense :)
What I'd like to do is have the camera 'bounce' slightly on each step rather than just snap to picked Y position. Hope that makes sense :)
Graphics3D 640,480,16,2 SetBuffer BackBuffer() Global Light = CreateLight() Global Camera = CreateCamera() RotateEntity Light,70,70,0 PositionEntity Camera,0,5,-10 Type Cube Field Model End Type Local CE.Cube,A For A = 1 To 20 CE.Cube = New Cube CE\Model = CreateCube() ScaleEntity CE\Model,8,1,2 PositionEntity CE\Model,0,A,A*2 EntityPickMode CE\Model,2 Next While Not KeyDown (1) MoveEntity Camera,KeyDown(205)-KeyDown(203),0,KeyDown(200)-KeyDown(208) Local Pick = LinePick (EntityX(Camera,True),EntityY(Camera,True),EntityZ(Camera,True),0,-10,0) PositionEntity Camera,EntityX(Camera,True),PickedY()+5,EntityZ(Camera,True) UpdateWorld RenderWorld Flip Wend End