Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

Better hitting and other tweaks It feels a bit cumbersome hitting the puck with the player. It would probably be easier if you make the

Better hitting and other tweaks

It feels a bit cumbersome hitting the puck with the player. It would probably be easier if you make the player smaller. Try using a setRadius call in its constructor to make it smaller. In doing this you reduce the mass of the player (normally equal to the density times the radius cubed), so to keep this up, increase the density as well, using a setDensity call.

It would be nice have a sound effect when you hit the ball. You can do this by overriding the player's collide method similar to the way in which we override it in the Gamestub code, though here all we want to do is make a noise when colliding with the puck and not change health or score in the collide.

It might be better to have the game world a little bigger.

Make sure you have the maximum speeds and the frictions tweaked to good values.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

9781285586618

Students also viewed these Programming questions

Question

=+for the shareholder of the acquiring company?

Answered: 1 week ago

Question

=+for the shareholder of the acquired company?

Answered: 1 week ago

Question

=+for the acquired company?

Answered: 1 week ago