# how to calculate ellipsoid and ellipsoid offset

## Recommended Posts

hi all,
how to calculate ellipsoid and ellipsoid offset for meshes.
actually i am trying pass the ellipsoid and its offset dynamically..  i want know which basis we want to calculate for meshes..kindly suggest me for this

##### Share on other sites

http://www.babylonjs-playground.com/#MVOFS

line 30 to set the tessellation : step variable

##### Share on other sites

Another simpler way would have been to create a sphere and then to use scaling on x, y and z according to the a, b, c values...

easier, yes

but not as funny as ribbonic further morphing with just tiny parameter changes :

http://www.babylonjs-playground.com/#MVOFS#1

http://www.babylonjs-playground.com/#MVOFS#2

http://www.babylonjs-playground.com/#MVOFS#3

etc

##### Share on other sites

@jerome: not sure, but I think he means the ellipsoid and ellipsoid offset parameters for the moveWithCollisions... do you @vahith?

(But nice move doing some marketing for the ribbon, people need to know! )

I don't know the answer, though. I played around until I got some values that looked like they fit when I used it so far, but it would be nice to know how to calculate the correct values. Of course it somehow depends on the shape of the mesh and probably also on the use case/the scene, I guess.

ooops

misunderstood so

sorry

##### Share on other sites

hi

@jerome: not sure, but I think he means the ellipsoid and ellipsoid offset parameters for the moveWithCollisions... do you @vahith?

(But nice move doing some marketing for the ribbon, people need to know! )

I don't know the answer, though. I played around until I got some values that looked like they fit when I used it so far, but it would be nice to know how to calculate the correct values. Of course it somehow depends on the shape of the mesh and probably also on the use case/the scene, I guess.

yes that's true i asked ellipsoid and ellipsoid offset parameters for the moveWithCollisions..

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.