필터 지우기
필터 지우기

How can I show spheres "rolling" around in animation?

조회 수: 3 (최근 30일)
Bill Rooker
Bill Rooker 2016년 8월 26일
댓글: Bill Rooker 2016년 8월 26일
Hello everyone,
I am generating a visual of spheres "bouncing" around like soccer balls. Reference the animations in the ZIP file and the code. I am able to plot the spheres using the "sphere" function. However, I do not know how to visualize the rotation. Is there a way to color the spheres such that it is easy to see it rotate? Also, what would be a good way to apply the rotation to the sphere? Thanks.
Best regards,
Bill Rooker
  댓글 수: 1
Bill Rooker
Bill Rooker 2016년 8월 26일
Hello everyone,
Looks like, if I add the function shading (see below), it gives it color. Reference the updated v2 ZIP file version. However, I cannot get it to rotate. Any suggestions would be great. Thanks.
shading interp
Best regards,
Bill Rooker

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by