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.

Dark GDK / Polygon detection

Author
Message
Barkron
15
Years of Service
User Offline
Joined: 14th Jul 2009
Location:
Posted: 14th Jul 2009 21:08
i want to write a sliding collision script for my polymap funktion, but to handle this, i need the normals or the edge positions of the polygon the player is hitting.
so i ask if someone could frite some funktions to get this informations.

sfmbe
Mista Wilson
16
Years of Service
User Offline
Joined: 27th Aug 2008
Location: Brisbane, Australia
Posted: 15th Jul 2009 01:23
Have a look at Sparkys Collision. It does a whole heap of different collision types, raycasting, sliding etc, you can assign collision groups and check things individually, some of the demos that come with it, do almost exactly what you are asking.

One of the raycast demos presents you with a bunch of primitives and raycasts from the camera to the mouse, if it hits a poly of one of the objects, the poly is highlighted(kinda, think it actually has another small object pasted on the position of the racast collision).... im sure you could adapt that to what you are trying to achieve.

If it ain't broke.... DONT FIX IT !!!
Barkron
15
Years of Service
User Offline
Joined: 14th Jul 2009
Location:
Posted: 15th Jul 2009 23:16
thx, i will take a look

Login to post a reply

Server time is: 2024-10-01 08:24:45
Your offset time is: 2024-10-01 08:24:45