Physic objects - ghost, invisible...

View previous topic View next topic Go down

Physic objects - ghost, invisible...

Post  _-MADMAN-_ on Wed Jun 10, 2009 7:34 am

Hi,

I have level divided into many sectors (boxes). I'm using sensor init collision to detect in which sector player already is, which is already leaving and which sectors are available from actual sector. Quite simply, structural mechanism, but I can't find the way to create box visible for rigid dynamics world (so collision sensor will work), but insensible for damping etc. (so player could freely walk through them).

I have tried flags (as in tut14 for fog), but sensors do not react after that.

Any help will be great!

Regards,
Mad

_-MADMAN-_

Posts : 52
Join date : 2009-04-23

View user profile

Back to top Go down

Re: Physic objects - ghost, invisible...

Post  sio2interactive on Wed Jun 10, 2009 5:14 pm

Code:


      _SIO2object->_btRigidBody->setCollisionFlags( _SIO2object->_btRigidBody->getCollisionFlags() |
                                         btCollisionObject::CF_NO_CONTACT_RESPONSE );



_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Physic objects - ghost, invisible...

Post  _-MADMAN-_ on Thu Jun 11, 2009 3:54 am

Perfectly - thank you. That answers few other questions I had Wink

_-MADMAN-_

Posts : 52
Join date : 2009-04-23

View user profile

Back to top Go down

Re: Physic objects - ghost, invisible...

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum