0 votes


I'm doing a game with vehicles.

I can't have the player be anything else besides a rigidbody, but I also can't have the vehicle move because the player moved inside the vehicle and collided a wall.

So I want to cancel the collision's effect on the vehicle's velocity.

I've tried to get the contact impulse, normal, and position in integrate force and tried to apply an opposite impulse. But it seems like the get_contact_local_normal function only gives me the normal of the face and not the direction of the impulse, and get_contact_impulse gives me a float instead of a vector3.

Is there something I can do?

Godot version 3.3.1-rc1
in Engine by (16 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.