leggedrobotics / raisimLib

RAISIM, A PHYSICS ENGINE FOR ROBOTICS AND AI RESEARCH
http://www.raisim.com
327 stars 50 forks source link

Asking for how to set static object #58

Closed ZQX323 closed 4 years ago

ZQX323 commented 4 years ago

Hi,

I want to add some small spheres in the space as reference motion. So I want them hang in the space without falling. I am struggling with this. Any suggestions? Besides, I want them not collide with the robot. After I set CollisionGroup and CollisionMask, it does not work, so I am a little confused to use CollisionMask. How to set it? Thank you very much!

jhwangbo commented 4 years ago

sphere->setBodyType(raisim::BodyType::STATIC); But this will still allow collisions.

I didn't make documentation for collision filtering but it is standard in all physics engines. Check this Link https://pybullet.org/Bullet/phpBB3/viewtopic.php?t=1086

ZQX323 commented 4 years ago

Thanks very much, it really helps!