Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
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);
}