Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
agmcleod opened this issue May 27, 2017 · 3 comments
Open

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

agmcleod opened this issue May 27, 2017 · 3 comments

Comments

@agmcleod
Copy link

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.

@hirako2000
Copy link

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

@agmcleod
Copy link
Author

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.

@hirako2000
Copy link

hirako2000 commented May 29, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants