physics-module-ammonext icon indicating copy to clipboard operation
physics-module-ammonext copied to clipboard

Unclear on how to apply force or manipulate the physics body.

Open agmcleod opened this issue 8 years ago • 3 comments

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.

agmcleod avatar May 27 '17 00:05 agmcleod

@agmcleod, checked the codepen? also check the examples Come in discord if you have more troubles.

hirako2000 avatar May 27 '17 01:05 hirako2000

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.

agmcleod avatar May 28 '17 15:05 agmcleod

Check the physics module page You can access all the examples sources here

I suggest we talk on discord, @sasha240100 is far more familiar with the physics module than I. he will certainly help to get what you need to achieve.

hirako2000 avatar May 29 '17 11:05 hirako2000