colision setup

Blitz3D Forums/Blitz3D Beginners Area/colision setup

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

yeah, your missing your detection and reaction parameters for the collisions command.

Graphics3D 1024,768
SetBuffer BackBuffer()

camera=CreateCamera()
EntityType camera,3
CameraRange camera,0.1,100

light=CreateLight()
TurnEntity light,45,30,0

;inside setup
inside=LoadMesh( "test.b3d" )
PositionEntity inside,0,25,0
EntityType inside,1

;player setup
player=CreateCone()
PositionEntity player,0,0,-7
EntityType player,2

;colision
Collisions 1,2,2,2

While Not KeyHit(1)


If KeyDown(200) Then MoveEntity player,0,0,0.1
If KeyDown(208) Then MoveEntity player,0,0,-0.1
If KeyDown(203) Then TurnEntity player,0,1,0
If KeyDown(205) Then TurnEntity player,0,-1,0


UpdateWorld
RenderWorld
Flip
Wend
End


there, fixed!