hi, does iTwin.js now support element motion animation? #372
-
hi, does iTwin.js now support element motion animation? For example, there is a door in the model, and I want to achieve a dynamic effect of opening or closing the door. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
A DisplayStyle can have an associated schedule script. The script can apply rigid body transforms to groups of elements along a timeline. I think @Ellord207 has plans to add an example to our sample showcase in the near future. |
Beta Was this translation helpful? Give feedback.
A DisplayStyle can have an associated schedule script. The script can apply rigid body transforms to groups of elements along a timeline. I think @Ellord207 has plans to add an example to our sample showcase in the near future.
However, this feature is designed to animate the model based on its construction timeline - not for dynamically animating individual elements.
If you are feeling adventurous, you could try writing a Decorator that uses the very new requestElementGraphics API to obtain graphics for your door and display them with the appropriate transform while hiding the original door graphics using symbology overrides