Results 1 to 5 of 5

Thread: Collision Detection - Distance between two objects

  1. #1
    Newbie Newbie
    Join Date
    May 2015
    Posts
    1

    Unhappy Collision Detection - Distance between two objects

    Hello!

    I should implement a collision detection by using a bounding sphere. First I calculated the center point of my object - a pyramide. Then I calculated the radius by finding out the biggest distance from the center point to another point of the object.

    My problem is the following: How can I compare the distance of two center points of two objects? All I know are the vertices of the two objects, but not the pixel coordinates in world coordinates.

    Do you know a solution?

  2. #2
    Member Newbie
    Join Date
    May 2015
    Posts
    37
    Let`s get this straight. The only thing you know is two sets of object coordinates relative to their respective centers. OK.
    How come you don`t know where your objects` centers reside?

  3. #3
    Senior Member Regular Contributor
    Join Date
    Jan 2013
    Posts
    170
    can I get a little help, please!

  4. #4
    Senior Member Regular Contributor
    Join Date
    Jan 2013
    Posts
    170
    sorry wrong thread

  5. #5
    Senior Member Regular Contributor
    Join Date
    Mar 2015
    Posts
    296
    Distance = vec1 - vec2;
    where vec1 = the first object center point vector, vec2, the second.

Similar Threads

  1. Collision Detection using View Matrix of two objects.
    By MrCybin in forum OpenGL: General
    Replies: 1
    Last Post: 12-07-2015, 03:42 PM
  2. Collision detection between concave objects using occlusion queries
    By yalmar in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 11-21-2006, 01:46 PM
  3. Collision detection with objects in display lists
    By neilw in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 11-14-2002, 01:31 AM
  4. Collision detection & locating objects coordinates
    By sdom100 in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 04-12-2002, 02:57 AM
  5. collision detection contest: collision crazy
    By in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 09-19-2000, 02:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean