On Pre Draw

On Pre Draw

Justin_CN_Ruan
Not applicable
12 Views
2 Replies
Message 1 of 3

On Pre Draw

Justin_CN_Ruan
Not applicable

[ FlexSim 22.1.4 ]

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

0 Likes
Accepted solutions (1)
13 Views
2 Replies
Replies (2)
Message 2 of 3

moehlmann_fe
Observer
Observer
Accepted solution

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.

0 Likes
Message 3 of 3

Jeanette_Fullmer
Community Manager
Community Manager

Hi @Lamm, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes