Fixed return of KinematicBody::_move

Fixed incorrect normal
Added missing collider velocity
This commit is contained in:
James Beedie 2017-08-31 09:51:36 -04:00
parent caf1447bef
commit 6fc5d1cd37
1 changed files with 2 additions and 1 deletions

View File

@ -918,7 +918,7 @@ Dictionary KinematicBody::_move(const Vector3 &p_motion) {
if (move(p_motion, col)) {
Dictionary d;
d["position"] = col.collision;
d["normal"] = col.collision;
d["normal"] = col.normal;
d["local_shape"] = col.local_shape;
d["travel"] = col.travel;
d["remainder"] = col.remainder;
@ -929,6 +929,7 @@ Dictionary KinematicBody::_move(const Vector3 &p_motion) {
d["collider"] = Variant();
}
d["collider_velocity"] = col.collider_vel;
d["collider_shape_index"] = col.collider_shape;
d["collider_metadata"] = col.collider_metadata;