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

Sandcastle example for model with spinning wheels #7295

Closed
pjcozzi opened this issue Nov 30, 2018 · 4 comments
Closed

Sandcastle example for model with spinning wheels #7295

pjcozzi opened this issue Nov 30, 2018 · 4 comments
Assignees

Comments

@pjcozzi
Copy link
Contributor

pjcozzi commented Nov 30, 2018

Example showing a moving glTF vehicle model where the wheels are spinning at a realistic rate given the vehicle's velocity.

CC @chris-cooper @impactblue573

@OmarShehata
Copy link
Contributor

I think this Sandcastle is a good start:

https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/?src=Multi-part%20CZML.html

It already has a vehicle with wheels spinning, depending on the simulation time. I think it shouldn't be too hard to figure out the correct rate to play the animation.

@pjcozzi
Copy link
Contributor Author

pjcozzi commented Nov 30, 2018

Yes, perfect!

@OmarShehata
Copy link
Contributor

@lilleyse I've managed to correctly compute the correct rotation speed given the wheel's circumference and the vehicle's speed, however it doesn't look like there's a way to set the rotation speed of an animation from the Entity API, correct me if I'm wrong.

I think this will be a good opportunity to expose that, to make manipulations like this possible.

@OmarShehata
Copy link
Contributor

This is done with #7361. @mramato can you close?

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

No branches or pull requests

3 participants