Author Topic: Are object3d s centered?  (Read 557 times)

Offline lawless_c

  • int
  • **
  • Posts: 91
    • View Profile
Are object3d s centered?
« on: June 10, 2015, 03:17:54 pm »
Just wanted to know if i create a sphere using this method

ExtendedPrimitives.createEllipsoid(new SimpleVector(plsize,plsize,plsize), 128, 1f, 1f);

Will the  the sphere be at the origin/center or offset from it in some way?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11770
    • View Profile
    • http://www.jpct.net
Re: Are object3d s centered?
« Reply #1 on: June 10, 2015, 11:17:08 pm »
Its origin should be (more or less...it's calculated based in the geometry, so it might be slightly off) at the center in object space. Where it's in world space depends on the transformations that you apply to it.