logo

Crowdly

Browser

Add to Chrome

Considere o seguinte troço de código Three.js: function init() { … } function ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Considere o seguinte troço de código Three.js:

function init() { … }

function animate() {

    'use strict';

    if (ball.userData.jumping) {

        ball.userData.step += 0.04;

        ball.position.y = Math.abs(30*(Math.sin(ball.userData.step)));

        ball.position.z = 15*(Math.cos(ball.userData.step));

    }

    render();

    requestAnimationFrame( animate );

}

Relativamente à instrução requestAnimationFrame( animate ); …

More questions like this

Want instant access to all verified answers on moodle.dei.tecnico.ulisboa.pt?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome