Capsules

9 views
Skip to first unread message

mo

unread,
Jul 20, 2010, 2:58:03 AM7/20/10
to jinngine
Any wishes for capsules? How should they be specified? By placing two
spheres along with each their radius?

A uniform capsule, i.e. a capsule where both end-spheres have the same
radius would be very efficient to handle. What kind of capsules do you
use in your modeling?

Mikkel Petersen

unread,
Jul 20, 2010, 6:59:30 AM7/20/10
to jinngine
I'm not really sure, but the ones I use has radius and a length.

mo

unread,
Jul 20, 2010, 7:16:08 AM7/20/10
to jinngine
is that two or one radius?

Mikkel Petersen

unread,
Jul 21, 2010, 12:17:48 PM7/21/10
to jinngine
It has two parameters, a radius and a length..same as the one in
JME:http://www.jmonkeyengine.com/doc/com/jme/scene/shape/Capsule.html

mo

unread,
Aug 8, 2010, 5:40:06 AM8/8/10
to jinngine
Just to follow up, I didn't forget the capsule thing. I just bumped
into the realization that a capsule is just a sphere-swept line.
Sphere-swept shapes can be handled particularly efficient because
smooth support mappings (used in GJK) can be avoided. So I would like
to implement a general support for sphere swept shapes, such that
things like capsules can be modeled through that. I'll keep you
updated.

Mikkel Petersen

unread,
Aug 9, 2010, 6:33:09 PM8/9/10
to jinngine
Sounds great. Just got home from vacation and am now I'm ready to go
on working with jinngine

mo

unread,
Aug 11, 2010, 10:19:25 AM8/11/10
to jinngine
UniformCapsule is now in svn.

I did some small tests, and it seem to work as expected, except for
some cases contacts that appears to be a little unstable. Let me know
how it works out :)

Pierre LABATUT

unread,
Aug 11, 2010, 3:53:53 PM8/11/10
to jinn...@googlegroups.com
Hi,
 Cool, thanks for the update.
 I played with capsule to model laser beam. It seams to work as expected.
 
 http://space-cronicles.googlecode.com/files/test0002.avi

 For your information I had the need to set a mass to the UniformCapsule. I modified the constructor to force the mass.
--
Pierre LABATUT
Reply all
Reply to author
Forward
0 new messages