How do you make an object travel in a circle in the 3d world editor?
이전 댓글 표시
I've created 5 different objects in the 3D world editor and I'm trying to get 4 of them to revolve around a centered one. How do I define the trajectory so they will complete a full circle in a given amount of time?
답변 (1개)
Mischa Kim
2013년 12월 16일
Open the VR sink block that represents your model and check "translation" of all of the four rotating objects in the VRML tree. See this video for more detail. There are now four corresponding inputs visible on the VR sink block that accept position vectors (x,y,z) as input values.
Note that for a circular motion about the coordinate center the orbit period is given by
T = 2*pi*sqrt(r^3/mu)
where mu is the standard gravitational parameter and r is the orbit radius. For a given orbit period and radius you can then compute position vectors by using basic orbital dynamics.
카테고리
도움말 센터 및 File Exchange에서 Simulink 3D Animation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!