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
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
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 个)

类别

Help CenterFile Exchange 中查找有关 Simulation 的更多信息

产品


版本

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by