Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Check face angle of collision?

Author
Message
Qqite
16
Years of Service
User Offline
Joined: 28th Feb 2010
Location: Florida, U.S.
Posted: 11th Nov 2010 19:36
Is there a way to check the angle of the face that is collided?

I want this for that if check_y_collision_under_player_angle() is over 50 degrees then do not allow movement or jumping.

Or another way of saying this is: How do I have my program make sure that the player is on the ground AND not on a side of 89 degree cliff?

Ventures of the worlds around us are only limited by imagination.
C0wbox
20
Years of Service
User Offline
Joined: 6th Jun 2006
Location: 0,50,-150
Posted: 11th Nov 2010 20:04
The best way to do this is to use Sparky's collision DLL.

With this there are commands for getting the normals of faces being collided with.

(I can give you code if you need it, or you can probably do a forum search and find it all yourself. )

baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 11th Nov 2010 20:59
Easy way to find it is do a search for "Massive Collision"...

Login to post a reply

Server time is: 2026-07-21 21:13:19
Your offset time is: 2026-07-21 21:13:19