elation-engine 0.9.113 → 0.9.114

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -151,7 +151,10 @@ elation.require(['engine.things.generic', 'engine.things.camera', 'engine.things
151
151
 
152
152
  this.flying = value;
153
153
  this.usegravity = !this.flying;
154
- console.log('toggle flying', this.flying);
154
+ if (this.gravityForce) {
155
+ this.gravityForce.update(this.gravityVector.set(0,this.usegravity * -9.8 , 0));
156
+ }
157
+ //console.log('toggle flying', this.flying, this.gravityForce);
155
158
  }
156
159
  this.reset_position = function(ev) {
157
160
  if (!ev || ev.value == 1) {