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

Set mesh initial velocity in cannonWorld #106

Merged
merged 2 commits into from Dec 7, 2021

Conversation

1AlbertChen
Copy link
Contributor

This allows the user to set initial velocity for mesh objects like how you set mass in cannonWorld. Now you can use something like mesh.userData.velocity = {x: 100, y: 100 , z: 100} inside a initializer method like initMesh inside<Box @created="initMesh"> </Box>. I'll probably come up with something similiar for InstancedMesh too.

@1AlbertChen 1AlbertChen marked this pull request as ready for review November 27, 2021 12:56
@klevron klevron merged commit 808df1d into troisjs:master Dec 7, 2021
@klevron
Copy link
Member

klevron commented Dec 7, 2021

Thanks 👍

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

Successfully merging this pull request may close these issues.

None yet

2 participants