Is there any way to get KinematicBody2D safe margin by code?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Noise

As the header explains itself, I wanna know if there’s a way to get the collision/safe_margin of Kinematic bodies by code.

:bust_in_silhouette: Reply From: klaas

Have a lokk here

https://docs.godotengine.org/en/stable/classes/class_physicsserver.html#class-physicsserver-method-body-get-kinematic-safe-margin

Oh, thanks, hadn’t found anything when searching.

Noise | 2020-07-21 23:56