Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
Are object3d s centered?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Are object3d s centered? (Read 1688 times)
lawless_c
int
Posts: 96
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?
Logged
https://github.com/lawlessc
EgonOlsen
Administrator
quad
Posts: 12295
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.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
www.jpct.net
»
jPCT-AE - a 3d engine for Android
»
Support
»
Are object3d s centered?