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

setPhysicsState #209

Closed
Junken opened this issue Jun 4, 2014 · 4 comments
Closed

setPhysicsState #209

Junken opened this issue Jun 4, 2014 · 4 comments

Comments

@Junken
Copy link

Junken commented Jun 4, 2014

Once I use setPhysicsState , I can not move the object anymore by changing object.position.x,y,z.

@deltakosh
Copy link
Contributor

this is the regular behavior. To move a physics object you can use mesh.applyImpluse

@Junken
Copy link
Author

Junken commented Jun 5, 2014

I use that too but how do you make sure the object stops at a certain location. When you set the location, it determines the final location where in apply impulse you define the initial forces. Do I need to do physics calculations to find out where it will stop. Let's say I want to put a rock back to the top of the hill after it rolled down the hill.
Also on another note, is there any fired event that the object has stopped (or finished moving, impulse effects ended, stabilised) after applyInpulse

@deltakosh
Copy link
Contributor

Not directly into Babylon.js. But if you find a way to do that with cannon.js I would be pleased to add it

@jiweigang1
Copy link

@Junken u can use setPhysicsState(BABYLON.PhysicsEngine.NoImpostor);

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

3 participants