Collision Groups

5 views
Skip to first unread message

indy2005

unread,
Aug 19, 2010, 4:48:32 AM8/19/10
to Mekanimo
Hi,

How do I set collision groups etc. If I have a complex body such as
as a vehicle or ragdoll, is there anything I need to do to prevent
parts of the body from colliding with each other?

Rgeards

i

Fahri

unread,
Aug 19, 2010, 5:24:31 AM8/19/10
to Mekanimo
Select the objects that should not be collided with each other and
then click the Object -> Never Collide menu. Those objects will not
collide with each other. When you have a complex model with a lot of
parts, if you type

>>> system.neverCollide

and hit enter then you can see the groups of objects that would not
collide with each other.

If you wish to use code instead of the GUI then use the noCollision
method in your code as shown below.

system.noCollision([circle1, rectangle2])


When you create pin, motor, torsional spring connectors, by default
their body1 and body2 does not collide with each other. You can
change this by typing

>>> pin1.collideConnected = True

There is no slot for the collideConnected property in the object tree
yet.

indy2005

unread,
Aug 19, 2010, 6:07:31 AM8/19/10
to Mekanimo
Great thanks
Reply all
Reply to author
Forward
0 new messages