Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
main(doc,op)
{
var frame = doc->GetTime()->GetFrame(doc->GetFps());
var Ml = op->GetMl();
Ml->SetRotY(frame*0.5);
op->SetMl(Mrotor);
}
main(doc,op)
{
// aktuelle Zeit
var t = doc->GetTime();
// aktuelles Frame
var frame = t->GetFrame(doc->GetFps());
// aktuellen Rotations-Vektor holen
var rotor_rot = op->GetRotation();
// x-Rotation in Abhängigkeit des aktuellen Frames setzen
rotor_rot.x = frame*0.5;
// Rotation dem Objekt mit Coffee-Tag zuweisen
op->SetRotation(rotor_rot);
}