Please help with 3D collisions.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Clint Fleetwood
:warning: Old Version Published before Godot 3 was released.

I have looked over these Q&A, tried to find tutorials, and completely read every line of the docs and cannot seem to find a solution for this to work.
I cannot find a way for the signal of a collision to be sent.

I have included a link to a zipped version of the project. I’m at my wits end about this. It seems like it should be simple but it is simply not working. Please help.

:bust_in_silhouette: Reply From: kubecz3k

There are two reasons why collisions are not working for you in this project.

  1. In your rigid body you need to have ContactMonitor property set to true and ContactsReported property must be greater then 0. (it’s 0 in your project)

  2. You are using wrong signal, body_enter_shape takes a lot of arguments, while your ‘listener’ function takes only one. You need to use body_enter signal instead.

Tip for second case: for the beginning it’s usually better to connect signals via gui interface, that will craete proper functions for you (click on a node in scene tree and then on a ‘socket’ icon above the tree).

Thank you for the advise,
I had the settings you suggested before (i was monkeying with all kind of settings) but it didn’t work. It just seems to slow the framerate down as it pushes through the object. I set it all back like you suggested but I am getting the same results. No signal.
Suggestions?

Clint Fleetwood | 2016-04-13 15:13