www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: brainmaster on April 22, 2007, 01:50:44 am

Title: Collision modes
Post by: brainmaster on April 22, 2007, 01:50:44 am
Hello. I can get my collision checks to work when the source object mode is only ...SELF and the target is only ...OTHER. Why can't setting the mode to (...SELF&...OTHER) for the objects work?
Title: Re: Collision modes
Post by: EgonOlsen on April 22, 2007, 11:28:45 am
You have to OR the modes, i.e. do a Object3D.setCollisionMode(COLLISION_CHECK_OTHERS|COLLISION_CHECK_SELF);
Title: Re: Collision modes
Post by: brainmaster on April 22, 2007, 08:16:12 pm
Opps, sorry. My careless mistake. Thanks.