Link Search Menu Expand Document

Animated Models

Animate (rotation)

Animate rotation of the already drawn cube.

Raw Message

arena-py-pub -mh arenaxr.org -s example -m '{"object_id" : "cube_1", "action": "update", "type": "object", "data": { "animation": { "property": "rotation", "to": "0 360 0", "loop": true, "dur": 10000}} }'

Python

cube.update(data='{"animation": {"property":"rotation", "to":"0 360 0", "loop":"true", "dur":10000}}')

other animations are available that resemble the "data": {"animation": { "property": ... }} blob above: see A-Frame Animation documentation for more examples