collisions and gravity

Blitz3D Forums/Blitz3D Beginners Area/collisions and gravity

mysticlore: Maybe you should read up on the collision command in the blitz help docs. To perform collisions, you need to first give the entities an entitytype.

;your code
Global light=CreateLight() 
Global player=CreateCube() ; create simple player 
Global plane=CreatePlane() ; create simple floor 
PositionEntity player,0,0,-10 
MoveEntity player,0,1,0
;my addition
EntityType player,1 ; give the player a different EntityType number from
EntityType campivot,2; the campivot entity


Then add somewhere before the main loop:

Collisions 1,2,2,2 ; first two parameters are the entities you want to perform collisions on.
                   ; Next two are the collision detection method and the collision responce.


Though i don't really see why you want the player to collide with the cam pivot :)