Improved logic for KinematicBody collision recovery depth
Allows more flexible collision detection with different safe margin values. Kinematic body motion changes in 2D and 3D: -Recovery only for depth > min contact depth to help with collision detection consistency (rest info could be lost if recovery was too much) -Adaptive min contact depth (based on margin) instead of space parameter
This commit is contained in:
@ -261,7 +261,6 @@ public:
|
||||
SPACE_PARAM_BODY_ANGULAR_VELOCITY_SLEEP_THRESHOLD,
|
||||
SPACE_PARAM_BODY_TIME_TO_SLEEP,
|
||||
SPACE_PARAM_CONSTRAINT_DEFAULT_BIAS,
|
||||
SPACE_PARAM_TEST_MOTION_MIN_CONTACT_DEPTH,
|
||||
};
|
||||
|
||||
virtual void space_set_param(RID p_space, SpaceParameter p_param, real_t p_value) = 0;
|
||||
|
||||
Reference in New Issue
Block a user