Creating invisible collision object

Post Reply
mfanton
Posts: 1
Joined: Tue Aug 19, 2014 9:39 pm

Creating invisible collision object

Post by mfanton »

Hi everyone,

I'm quite new to the bullet physics engine and C++ in general, and was wondering if someone could give me any advice or example code on how to create an invisible box rigidbody. I can create the box rigidbody and put it into my world, but can not figure out how to make this box invisible (ie still collides with other objects but is completely see-through). I've done some searching on these forums and couldn't find anything.

I understand the easiest way to do this is to create the collision object, and simply not render it. From what I understand the motion state is what links the collision shape to the OpenGL rendering. Would I have to create a custom motion state for my rigidbody?

Any advice (or example code) would be much appreciated, thanks!
rebirth
Posts: 24
Joined: Thu Jul 24, 2014 2:48 am

Re: Creating invisible collision object

Post by rebirth »

Your question is rather strange. Bullet doesn't do any rendering. You just create the rigidbody using a box shape and stick it in the dynamic world.

Job done.
Post Reply