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?

Thanks!

asked Jun 5 in Engine by Ditoga (24 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.