X/Y/Z Collision

Blitz3D Forums/Blitz3D Beginners Area/X/Y/Z Collision

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.

Hi, another one from me!

I have a jump code that lets my player jump when its in collision with the world, to prevent him jumping, without his feet touching anything.

Here is the code!
If KeyHit(57) 

	If EntityCollided(player,world_col)

	 	While Player_velocityY =< 2		
		
			Player_velocityY = Player_velocityY + Gravity

		Wend
		
	EndIf
	
EndIf


It works perfect... so far. I was thinking of adding a pivot with a collision radius as a child of the player, to detect if the players feet area is touching the ground.

At this point, pressing jump and standing against the wall, makes the player fly up. Funny as it is, that's not what I need :P

Before I make the child radius, is there a way to detect if a certain part/location of a collision radius is colliding?


Thanks!!