Contact

26 views
Skip to first unread message

Javier Fernández

unread,
Apr 28, 2011, 5:19:37 PM4/28/11
to jinngine
Hi,

I wanted to know if there is a way in jinngine to list the points of
contact (or the faces) between two bodies at any moment..

I have a die of 12 faces (dodecahedron) and I need to know the face
sitting on the floor. I created the dodecahedron with the ConvexHull.
The floor is a Box.

Thanks in advance!

Javier

Morten Silcowitz

unread,
Apr 30, 2011, 11:03:01 AM4/30/11
to jinn...@googlegroups.com
Hi

have a look at

http://code.google.com/p/jinngine/source/browse/branches/geometry_rework/jinngine/src/jinngine/physics/ContactTrigger.java

you can setup such a trigger, and be notified when a contact happens
or stops happening. The triggered event will give you a reference to
the ContactConstraint. From there, you can access its contact point
generators, and ask for the contact points.

Let me know how it works

Mo

2011/4/28 Javier Fernández <javi...@gmail.com>:

Javier Fernández

unread,
May 3, 2011, 6:07:41 PM5/3/11
to jinn...@googlegroups.com
Hi Morten,
 
Thanks again for your help, it worked...
 
Javier

2011/4/30 Morten Silcowitz <mor...@silcowitz.dk>
Reply all
Reply to author
Forward
0 new messages