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 InstancedMesh initial velocities in cannonWorld #110

Merged
merged 1 commit into from
Dec 15, 2021

Conversation

1AlbertChen
Copy link
Contributor

Same change as #106 except for instancedmesh. Through userData.velocities the user can input either an {x: , y: , z: } velocity object (applied to all mesh objects) or an array of such object (applied to each individual mesh object).

@klevron
Copy link
Member

klevron commented Dec 15, 2021

Thanks 👍
I will probably refactor this and move the component to https://github.com/troisjs/components

@klevron klevron merged commit aee1719 into troisjs:master Dec 15, 2021
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.

2 participants