Author Topic: question?where is checkForCollisionEllipsoid's collidecenter?  (Read 1561 times)

Offline Uncle Ray

  • int
  • **
  • Posts: 81
    • View Profile
question?where is checkForCollisionEllipsoid's collidecenter?
« on: January 12, 2015, 05:15:49 pm »
solved
Answer:the fbx to obj,have some loss with texture,it is wrong in 3ds max,not jpct
____________________________________________________


obj.checkForCollisionEllipsoid(sv,eclips,6);

where is the eclips's center?
A:the center of obj?
B;the center of obj.mesh.getboundingbox?



and more question how to set the eclipse's center?
A:obj.setCenter(new Simplevector(x,y,z));
the (x,y,z),are coordinate in world's space or object's space?
« Last Edit: April 29, 2015, 05:06:33 am by Uncle Ray »

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: question?where is checkForCollisionEllipsoid's collidecenter?
« Reply #1 on: January 12, 2015, 09:21:02 pm »
It's the center of the Object3D (i.e. setCenter()) and it's in object space.