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

How would you do a simple scale? #484

Open
gree303 opened this issue Dec 26, 2022 · 1 comment
Open

How would you do a simple scale? #484

gree303 opened this issue Dec 26, 2022 · 1 comment

Comments

@gree303
Copy link

gree303 commented Dec 26, 2022

Hi all, I'm trying to get my head around this... was hoping someone can point me the direction.

I'd like to create a cylinder which is the center turning point of a "scale". Along the cylinder edge I'd like to add/constraint objects which act as "weights". In case the mass changes the cylinder will re-rotate to the new center of mass.

I'm playing around with the different constraints but never used it. Maybe some expert can tell me which contraint would be best. Thank to all and enjoy

@Fy-Spot
Copy link

Fy-Spot commented May 9, 2023

i dont think you can just scale in cannon.js
if u want to change the size off an object you should rather remake the shape with different lenghts. I am not sure though because I am just new to this

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