Properly pass safe margin on initialization.
Fixes jitter.
(cherry picked from commit 13e0385702)
This commit is contained in:
committed by
Rémi Verschelde
parent
67313c681d
commit
ceeb690476
@ -1432,13 +1432,14 @@ void KinematicBody::_bind_methods() {
|
||||
|
||||
KinematicBody::KinematicBody() :
|
||||
PhysicsBody(PhysicsServer::BODY_MODE_KINEMATIC) {
|
||||
|
||||
margin = 0.001;
|
||||
locked_axis = 0;
|
||||
on_floor = false;
|
||||
on_ceiling = false;
|
||||
on_wall = false;
|
||||
|
||||
set_safe_margin(0.001);
|
||||
}
|
||||
|
||||
KinematicBody::~KinematicBody() {
|
||||
|
||||
if (motion_cache.is_valid()) {
|
||||
|
||||
Reference in New Issue
Block a user