physics-module-ammonext
physics-module-ammonext copied to clipboard
Unclear on how to apply force or manipulate the physics body.
Trying out a prototype idea with whitestorm. Was able to setup a scene, but running into issues trying to do things with the physics engine. I see a number of useful methods here: https://github.com/WhitestormJS/physics-module-ammonext/blob/master/src/modules/physicsPrototype.js, but i have no way to execute them. I've tried accessing:
object.modules[0], which is the instance of PHYSICS.BoxModule i'm using, but it has none of these methods.
Yep, was referring to that codepen for getting started, though it doesn't have any examples on applying force or anything to move an object around. Tried looking at the examples, but I can't seem to find the source for them.