Add collisionCount and groundCollisionNormal to FirstPersonNavigationController tests
This commit is contained in:
@@ -178,6 +178,8 @@ describe("FirstPersonNavigationController", () => {
|
|||||||
z: feetPosition.z + motion.z
|
z: feetPosition.z + motion.z
|
||||||
},
|
},
|
||||||
grounded: false,
|
grounded: false,
|
||||||
|
collisionCount: 0,
|
||||||
|
groundCollisionNormal: null,
|
||||||
collidedAxes: {
|
collidedAxes: {
|
||||||
x: false,
|
x: false,
|
||||||
y: false,
|
y: false,
|
||||||
@@ -233,6 +235,8 @@ describe("FirstPersonNavigationController", () => {
|
|||||||
z: feetPosition.z + motion.z
|
z: feetPosition.z + motion.z
|
||||||
},
|
},
|
||||||
grounded: true,
|
grounded: true,
|
||||||
|
collisionCount: 1,
|
||||||
|
groundCollisionNormal: { x: 0, y: 1, z: 0 },
|
||||||
collidedAxes: {
|
collidedAxes: {
|
||||||
x: false,
|
x: false,
|
||||||
y: false,
|
y: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user