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.

답변 (2개)

Menaka Thathsarana
Menaka Thathsarana 2023년 5월 5일

1 개 추천

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 2020년 11월 4일

0 개 추천

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

댓글 수: 1

fmo2641
fmo2641 2021년 2월 11일
would I be able to change the length of the cylinder dynamically with a variable?

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Multibody Modeling에 대해 자세히 알아보기

질문:

2020년 10월 22일

답변:

2023년 5월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by