Filter löschen
Filter löschen

Animated Cube Rotations in Simulink and V-Realm Builder

2 Ansichten (letzte 30 Tage)
ss32
ss32 am 15 Nov. 2016
Beantwortet: Allwin Lucious am 5 Okt. 2017
I have a cube that I need to animate in Simulink and have currently drawn it using V-Realm builder. Using rotation as the input to the VR Sink block in Simulink I have been able to rotate the cube about an axis, but it isn't doing what I need. The cube needs to start on a corner and then spin about that corner. Simulink is outputting angles corresponding to yaw,pitch, and roll (rotations about Y,X,Z in normal X,Y plane) but the input for a rotation is a 4 vector describing a single axis of rotation with the angle of rotation. How can I take my three rotations and condense them down to a single axis of rotation?

Antworten (1)

Allwin Lucious
Allwin Lucious am 5 Okt. 2017
you need to use Quaternions. check out https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation

Kategorien

Mehr zu Simulation finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by