0 votes

I've a KinematicBody2D player, it works correctly, but I come from another engine where I could access to PhysicsContact from a event OnBeginContact which contained all the collision information, such as intersection points, normal, aabb, etc.

that info was useful to perform many mechanics like "jump corner correction" and many others like wall sliding, climbing, etc. with only one collider.
To perform same on Godot (kinematicBody2D) I've to add a lot of raytracing/areas2d.

I only want to create a Rect inside the player tree, and recibe events: onBodyEnter(collisionInfo) and know: wich side of the rect is hitting (normal), collision points (the points of intersection. Is there something like that in Godot?


in Engine by (50 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.