Topic was automatically imported from the old Question2Answer platform.
Asked By
NullPointer
Hi i try to build RigidBody from a generated CSG model and run into multiple problems.
The RigidBody is create by adding the collision shape build form the CSG node.
I try to use create_convex_shape() and create_trimesh_shape() with different results.
create_trimesh_shape() collision NOT works between RigidBody but with the floor mesh, no stucks
What was your step by step procedure to get the meshes?
I think you don’t need to make a mesh out of the CSG. Just create a RIGID BODY, create the CSGs as childs of the rigid body, and COLLISION SHAPES as childs of the rigid body too.
Hi thanks for your anwser.
The example was just a simple CSG model and apply multiple basic collision shapes is not a option for me.
The CSG models are procedual generated and can have a complex shape.
I need to extract the final result out of a CSG operation to build the exact collision shape.
It looks like it is a gereral bug in Godot, i tested with a imported meshes and generate a trimesh shape as collision shape from it.
All Ridigbodys with a trimesh shape not interact with it self, but build a concex shape it works.
Use a convex shape is not exact enough, and i found some differences between the implemented Physics engine (GodotPhysics, BullettPhysics).