www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: lawless_c on June 10, 2015, 03:17:54 pm

Title: Are object3d s centered?
Post by: lawless_c 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?
Title: Re: Are object3d s centered?
Post by: EgonOlsen 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.