Help storing the activation frame of a piece in an RBD sim
261 2 2-
- emmettmik
- Member
- 1 posts
- Joined: 12月 2021
- Offline
-
- Tanto
- Member
- 563 posts
- Joined: 11月 2016
- Offline
-
- npetit
- スタッフ
- 458 posts
- Joined: 2月 2008
- Offline
The RBD Bullet Solver has an option in the output tab to export "age" and "active_age" as attributes. age is the time since the rbd piece first appeared in the sim, active_age is the time since the rbd was last activated - if you have pieces that become active, then inactive, then active again it will be reset every time it changes from inactive to active and 0 whenever the piece is inactive.
To get the active_age out of the sim, make sure you add it to the list of attributes in the output tab > transfer attributes.
From there, to get the activation frame, you can do:
To get the active_age out of the sim, make sure you add it to the list of attributes in the output tab > transfer attributes.
From there, to get the activation frame, you can do:
@activation_frame = ((@Time - @active_age) / @TimeInc + 2) * (@active_age > 0);
-
- Quick Links


