Touch problems with a falling Rigidbody object

Godot Version

4.2.2

Question

Hello, I’m tring to allign a camera3D to a falling Rigidbody3D object, so that the camera fall with it, looking always the Rigidbody 3D.

It’s ok, but i’m using a _input_event function to the Rigidbody3D to generate an event when i touch it.

The problem is that looks like that the CollisionShape3D of the Rigidbody is going more down respect to the Rigidbody. So if I click on top of the Rigidbody i don’t have any event. If I click down the Rigidbody or in down half of it, I have the event. Like if the CollisionShape run more down than the Rigidbody.

Help me pls

I found the answer. The problem is that _input_event is just for event that don’t need physics. So…we need put all inside _physics_process using Raycast.

Just it

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.