#Collision with instantiated scenes

1 messages · Page 1 of 1 (latest)

charred tide
#

I'm trying to replace the collision shape of an instantiated rigidbody3D, in the ready() function of the instantiated scene. Upon instantiation, existing staticbodies and player collide with the rigidbody, but the rigidbodies dont collide with themselves. I tried to google the problem, and it could just be a bug with godot (https://github.com/godotengine/godot/issues/65193), I'm not really sure though. Are there any workarounds to this?

GitHub

Godot Engine – Multi-platform 2D and 3D game engine - godotengine/godot

rigid cove
#

Are you running it with Project>Visible Collision Shapes enabled?

#

Also, how does the remote tree look after you do this?

charred tide
#

its strange because other objects recognise the collision layer, but not the rigidbodies with each other

#

the rigidbodies is fixed when i delete the line of code that replaces the collision shape, and replace the collision shape with a fixed mesh

#

like they can collide with one another

#

but i want to have generated trimesh collisions based on the mesh

#

so i assume its a problem with the setting of the collision shape

amber root
#

Are you using the default Collison layer and mask?

charred tide
#

Yes

charred tide
#

oh i fixed it

#

apparently creating a trimesh creates a concave shape