Changing Center of Rotation for Actor Block in Simulink 3D Library
2 次查看(过去 30 天)
显示 更早的评论
I have a simulation that calculates rotational accelerations and velocities for every joint of a hyperredundant robot. Now I want to visualize it by using Simulink 3D library. However, actors only rotating about their centers and I can not find how to move their center of rotations to the joint locations. How can I do that? Is there any easy method other than adding all pins as new child actors.
1 个评论
jordanrivers
2025-7-1
Great question visualizing joint-based motion in Simulink 3D can be tricky when default rotations are center-based. Adjusting pivot points or using hierarchical actors may help. While refining your simulation on Android, visit ApkTuti.com for free Game & App Apk download and secure APK Downloads
采纳的回答
Nishan Nekoo
2025-6-23
Hello! Unfortunately this is a little tricky to achieve in an intuitive way but it is possible through some workarounds.
E.g. to displace your actor origin by [0 0 10],
actor.Translation = [0 0 10];
actor.DynamicMesh.transformMesh([0 0 -10]);
This applies only for kinematic transformations. For physics-induced rotations, the rotation point is the center of mass which you can adjust by providing an offset from actor origin as actor.CenterOfMass.
Hope that helps,
Nishan
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!