add get_depth() to KinematicCollision3D as same of 2D

This commit is contained in:
Silc Renew
2022-08-10 10:14:36 +09:00
parent 317ced8204
commit 7331295523
8 changed files with 27 additions and 0 deletions

View File

@ -550,6 +550,7 @@ public:
struct MotionResult {
Vector3 travel;
Vector3 remainder;
real_t collision_depth = 0.0;
real_t collision_safe_fraction = 0.0;
real_t collision_unsafe_fraction = 0.0;