question

Kari Payton avatar image
2 Likes"
Kari Payton asked Phil BoBo commented

Is there a way to follow a transporter around during model run?

I want the camera to follow a transporter around as it moves throughout the model. The view would stay fixed on the transporter.

FlexSim 16.2.1
transportervrflypath1st person
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

·
Phil BoBo avatar image
7 Likes"
Phil BoBo answered Phil BoBo commented

Attached is an example model with custom code in the Transporter's Custom Draw trigger that sets the view's viewpoint to the location of the transporter while the model is running:

if (getrunstate()) {
	set(viewpointx(view), xloc(current));
	set(viewpointy(view), yloc(current));
} 


· 4
5 |100000

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

Phil BoBo avatar image Phil BoBo ♦♦ commented ·

FlexSim 2017 Update 2 includes right-click menu options for following objects to make this easier:

4 Likes 4 ·
follow-object.png (42.9 KiB)
Ralf Gruber avatar image Ralf Gruber ♦ commented ·

Here is a link to the old user forum to that same problem:

https://www.flexsim.com/community/forum/showthread.php?t=3178

maybe @Marco Baccalaro is willing to upgrade the module to V16.2.1?

2 Likes 2 ·
Marco Baccalaro avatar image Marco Baccalaro Ralf Gruber ♦ commented ·

Here is it the Cams module for 16.2! flexcon-cams.zip

3 Likes 3 ·
flexcon-cams.zip (107.4 KiB)
Phil BoBo avatar image Phil BoBo ♦♦ Ralf Gruber ♦ commented ·
2 Likes 2 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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