Author Topic: return for ellipsoidal check  (Read 3190 times)

Offline fireside

  • double
  • *****
  • Posts: 605
    • View Profile
return for ellipsoidal check
« on: March 10, 2008, 11:58:43 am »
Not sure where to put this, but it would be nice if the check for ellipsoid collision returned an array with both the new vector position and an object ID if there was a collision.
click here->Fireside 7 Games<-

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: return for ellipsoidal check
« Reply #1 on: March 10, 2008, 12:03:38 pm »
You can implement a collision listener (ICollisionListener) which gives you the id information. Ellipsoid collision detection can't be limited to one id, it may return many ids of all objects hit along the path.

Offline fireside

  • double
  • *****
  • Posts: 605
    • View Profile
Re: return for ellipsoidal check
« Reply #2 on: March 10, 2008, 11:02:12 pm »
O.K.  I'll look into that, thanks. 
click here->Fireside 7 Games<-