Jun 10, 2009 at 11:34 AM
Edited Jun 10, 2009 at 11:35 AM
Hi there! I need a suggestion for a solution. The thing is that I want my character to hang himself and climb on the edges of objects (think about a cliff for example). For that I need to detect when the character is near a "climbing" edge (which
normally is a 90º vertice or near that angle). I'm not sure how to do this, as I have been thinking on two different solutions:
- Create a small geometry whose tag is "climbable". So if the character is near this geometry, it knows it can hang itself there when pressed the 'hang' button.
- Detect nearby vertices and their angles (no idea how to do that), and if it finds a suitable vertice for climbing it, hang itself when pressed the 'hang' button.
What do you think? Which one is better?
Another question is, for detecting nearby objects I was thinking on using a big geometry moving with the chatracter. Then with its OnCollision method I can detect what objects are close to the character. Is that the best way or is better (in terms of performance,
etc) another? Any suggestions?
Cheers and thanks!