Simscape Mechanics Explorer plot a dynamic line

So I am building a Simscape simulation with 3D cad objects. For visualization purposes I want to be able draw(plot) a line that represents my field of view from a 3D cad camera to a point in space. I was wondering if there is a way of ploting this line in such a way that it updates after every time interval.

Respuestas (2)

Menaka Thathsarana
Menaka Thathsarana el 5 de Mayo de 2023

1 voto

I need to plot the path traveled by the solid block within the mechnics explorer during the motion. please let me know. thanks
J Chen
J Chen el 4 de Nov. de 2020

0 votos

You can use a slender cylinder to represent the line and attached it to the camera.

1 comentario

fmo2641
fmo2641 el 11 de Feb. de 2021
would I be able to change the length of the cylinder dynamically with a variable?

Iniciar sesión para comentar.

Categorías

Más información sobre Multibody Modeling en Centro de ayuda y File Exchange.

Preguntada:

el 22 de Oct. de 2020

Respondida:

el 5 de Mayo de 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by