Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: am I touching or inside an object?

  1. #1
    Intern Contributor
    Join Date
    Feb 2003
    Location
    china
    Posts
    60

    am I touching or inside an object?

    is there a way for opengl to tell you if the viwer(if its size is well defined) of the world is about to touch an object and return the identity (we created it without an identity??!)of this object?
    I am asking this because i am thinking if there is, in some case it may not be needed to keep the map /terrain and look through all of them to calculate to prevent you from going through an obstacle whenever you want to walk ahead.
    Please tell me the conventoinal way to do this, thanks

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,651

    Re: am I touching or inside an object?

    Hi !

    Short answer is no, you need to add some form of collision detection, OpenGL has no support for it, but there are a number of collision detection libraries out there, it depends a little bit on what kind of collision detection you want to do.

    Mikael

  3. #3
    Intern Contributor
    Join Date
    Feb 2002
    Posts
    82

    Re: am I touching or inside an object?

    www.gametutorials.com has great collision detection tuts. You might wanna check those out.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •