From 2ca24485e097ca6adda2e542bc778a3f22690b40 Mon Sep 17 00:00:00 2001 From: Sam Gateau Date: Thu, 12 Apr 2018 02:11:47 -0700 Subject: [PATCH] and again --- .../developer/utilities/workload/test_physics_scene.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/developer/utilities/workload/test_physics_scene.js b/scripts/developer/utilities/workload/test_physics_scene.js index 0cf0a36225..43294786ff 100644 --- a/scripts/developer/utilities/workload/test_physics_scene.js +++ b/scripts/developer/utilities/workload/test_physics_scene.js @@ -33,6 +33,7 @@ } var OBJECT_DIM = { x: 0.5, y: 0.5, z: 0.5}; + var OBJECT_SPIN = { x: 0.5, y: 0.5, z: 0.5}; var shapeTypes = [ "none", @@ -51,7 +52,9 @@ function getTileColor(a, b, c) { } function addObject(a, b, c, lifetime) { - var center = getStagePosOriAt(a, b, v).pos; + var center = getStagePosOriAt(a, b, c).pos; + + return (Entities.addEntity({ type: "Shape", @@ -66,8 +69,9 @@ function addObject(a, b, c, lifetime) { dynamic: true, gravity:{"x":0,"y":-9.8,"z":0}, velocity:{"x":0,"y":0.02,"z":0}, + angularVelocity:OBJECT_SPIN, restitution:0.70, - friction:0.001, + friction:0.01, damping:0.001, }));