Kollisions Problem...

Übersicht BlitzBasic Blitz3D

Neue Antwort erstellen

 

Till P.

Betreff: Kollisions Problem...

BeitragSo, März 14, 2004 11:47
Antworten mit Zitat
Benutzer-Profile anzeigen
HI...........
mein Problem: es findet keine Kollsision statt Exclamation

Code:

;Kollisions-Typen

Const camera_type=0

Const player_type=1

Const ring_type=2

Const boden_type=3



;//////////////////////////////////////



Graphics3D 800,600,32,1

SetBuffer BackBuffer()



;Kamera

cam=CreateCamera()

CameraClsColor cam,0,0,255

PositionEntity cam,0,170,0

TurnEntity cam,43,0,0

EntityType cam,camera_type

EntityRadius cam,1



;Spieler

player=LoadMD2("C:\Programme\Blitz3D\pGames\meshes\person.md2")

PositionEntity player,-20,20,120

EntityType player,player_type



;Texturen

tex=LoadTexture("C:\Programme\Blitz3D\samples\si\fps\Gargoyle\gargoyle.bmp")

EntityTexture player,tex



;Boden

boden=CreatePlane()

EntityType boden,boden_type

EntityColor boden,200,100,50



;Ring

ring=LoadMD2("C:\Programme\Blitz3D\pGames\meshes\ring.md2")

PositionEntity ring,-20,80,120

EntityColor ring,200,200,200

EntityType ring,ring_type



;/////////////////////////////////////////////////////////////////////////

Collisions camera_type,ring_type,2,2

Collisions camera_type,boden_type,2,2



While Not KeyHit(1)



If KeyHit(17) Then WireFrame 1



If KeyDown(200) Then TurnEntity cam,1,0,0

If KeyDown(208) Then TurnEntity cam,-1,0,0

If KeyDown(203) Then TurnEntity cam,0,1,0

If KeyDown(205) Then TurnEntity cam,0,-1,0



If KeyDown(30) Then MoveEntity cam,0,0,3

If KeyDown(44) Then MoveEntity cam,0,0,-3

If KeyDown(157) Then TurnEntity cam,0,1,0

If KeyDown(82) Then TurnEntity cam,0,-1,0

If KeyHit(28) Then AnimateMD2 player,3,0.5,1,13







UpdateWorld

RenderWorld

Flip



Wend

End[/code]

Kryan

BeitragSo, März 14, 2004 11:52
Antworten mit Zitat
Benutzer-Profile anzeigen
Code: [AUSKLAPPEN]
Collisions camera_type,ring_type,2,2

Collisions camera_type,boden_type,2,2


muss in die hauptschleife
Webspaceanbieter?
Klick hier!
Kultige Spieleschmiede?
Klick hier!
 

Till P.

BeitragSo, März 14, 2004 12:01
Antworten mit Zitat
Benutzer-Profile anzeigen
Danke!,habs probiert,funzt aber trotzdem nicht.....
 

blitzblaster

BeitragSo, März 14, 2004 13:03
Antworten mit Zitat
Benutzer-Profile anzeigen
@ Kryan : lol....seit wann muß dann in die Hauptschleife ???

@ Till P.
Collisions camera_type,ring_type,2,2

Collisions camera_type,boden_type,2,2

versuch mal am Ende statt 2 eine 1

Gruß Blitzblaster

Neue Antwort erstellen


Übersicht BlitzBasic Blitz3D

Gehe zu:

Powered by phpBB © 2001 - 2006, phpBB Group