Help needed. Example to loop over models #678
Kevin-Mattheus-Moerman
started this conversation in
General
Replies: 1 comment
-
Hi @Kevin-Mattheus-Moerman so you want to perform an animation so that the model properties change over time? You can use the DOM to access A-Frame elements and update their properties, in the same way as standard HTML. Some detail is given on the A-Frame website https://aframe.io/ If you add an A-Frame component to the entity you want to animate, you can then add a If I have understood you correctly, I would recommend reading up on how to use the A-Frame API from JavaScript and creating your own A-Frame components. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to create a while loop whereby for each iteration the rendered model is reloaded.
Currently I render a static model like this:
But I want to be able to deform the model, e.g. let it be soft and rubbery and suffer from gravity. I have a separate code that deforms the model due to the updated gravity direction (and I can replace the files). What I am lacking now is a way to iteratively keep updating the model in time.
So is there something like this pseudocode I can use?
If there is a better way to handle model deformations (that goes beyond rigid body motion or affine transforms), then I'm interested in hearing about that too.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions