Demo entry 6349624

test

   

Submitted by anonymous on Feb 23, 2017 at 19:13
Language: C++. Code size: 296 Bytes.

if (CG1Helper::isKeyReleased('b')) {
  if (ourProject.objects.ball.grabbed) {
    ourProject.objects.ball.vel =
      CGMatrix4x4::getRotationMatrixY(-ourProject.cam.phi)
      * CGMatrix4x4::getRotationMatrixX(ourProject.cam.theta)
      * CGVec4(0.0f, 0.0f, -10.0f, 1.0f);
  }
  //...
}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).