Simulink 3D Animation: Zwei Actors miteinander verbinden
Show older comments
Hallo,
ich versuche mit Simulink 3D Animation ein Inverses Pendel aufzubauen. Ich habe dafür eine Box (Wagen) und einen Zylinder (Pendel) im Simulation 3D-Actor erstellt.
Cart = sim3d.Actor(ActorName='Cart', ...
Mobility=sim3d.utils.MobilityTypes.Movable);
createShape(Cart,'box', [0.04 0.1 0.04]);
Cart.Color = [1 0 0];
Cart.Translation = [0 0 0];
add(world,Cart,Actor);
Pendulum = sim3d.Actor(ActorName='Pendulum', ...
Mobility=sim3d.utils.MobilityTypes.Movable);
createShape(Pendulum,'cylinder', [0.01 0.01 0.5],3);
Pendulum.Color = [0 0 1];
Pendulum.Translation = [-0.02 0 0.25+0.02];
add(world,Pendulum,Actor);
Über entsprechende Inputs kann ich auch die einzelnen Actors animieren (Translation, Rotation). Kann ich das Pendel mit dem Wagen "verbinden", so dass das Pendel nicht um den Schwerpunkt, sondern um den Verbindungspunkt mit dem Wagen rotiert?
Accepted Answer
More Answers (0)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!