question

Lamm avatar image
0 Likes"
Lamm asked Jeanette F commented

On Pre Draw

Hi Experts,

I have a question when I used the trigger "On Pre Draw" in the Shape object.

I saw that that trigger is used to define the logic like positioning obj prior to their draw, but I don't know what exactly the function is used for. I found out my question has a few docs that can help. So, any help or example would be valuable.

Thank you guys

FlexSim 22.1.4
triggersonpredraw
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

As you say, it would mostly be used to implement movement that kinematics or animations are not suitable for. For example, just yesterday I used it in a model for this post to move an operator along with an item on a conveyor.

I also used in for the model in the video below. The trailer is rotated and translated based on the truck to achieve a realistic motion.

https://www.youtube.com/watch?v=7QY2AWj-ExY

The VR demo model uses a global OnPreDraw trigger to check if the hands are in the vicinity of interactable objects. The logic is thus coupled to the framerate.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.