Books
K. Aava Rani

Learning Unity Physics

Unity is a powerful game development engine that provides rich functionalities to create 2D and 3D games. Developers get the opportunity to build cross-platform mobile and desktop games from scratch. With the increasing interest in using Physics in interactive development, Unity3D offers a cutting-edge platform for simulation, game development, and application development through a user-friendly interface. You will learn the fundamentals of Physics in game development. The book starts by providing a quick introduction on how we can use Physics for interactive development. Furthermore, it provides a detailed description on the uses of Physics material in Unity3D and how we can use different colliders for interaction. The book also focuses on Rigidbodies and Joints, its types and properties. There is also a dedicated section on how we can optimize applications and games if we use Physics in Unity3D. By the end of this book, you will be capable of successfully developing Physics-based simulations, games, and applications.
171 printed pages
Publication year
2014
Have you already read it? How did you like it?
👍👎

Quotes

  • Timur Ahmetovhas quoted7 years ago
    A lower frame rate gives breathing room and helps in memory optimization. I personally find a 0.03 fixed timestep with a maximum of about 0.05 to be good for better performance. We can reduce the time spent on Physics updates by adjusting the fixed timestep setting. Increasing the timestep will reduce the CPU overhead but sometimes, the accuracy of Physics gets affected.
  • Timur Ahmetovhas quoted7 years ago
    Performance optimization depends upon how fast we can render by GPU, which is mostly limited by the number of pixels rendered and by the memory bandwidth. The CPU performance is also limited by the amount of draw calls processed. We can use GPU Profiler to find out how much time and how many draw calls are in the scene. To save rendering time, we should remove as many draw calls as possible.
    As shown in the following screenshot, by clicking on Stats, we can see the Statistics window:
  • Timur Ahmetovhas quoted7 years ago
    Precalculation during development can be very important to achieve high performance and make certain effects possible. Taking the approach of calculating as much as possible at the start of execution can have a great impact on performance.
    Apart from Physics-based performance optimizations, there are other factors too that we should use to optimize our game or app. Let's have a few examples.

On the bookshelves

fb2epub
Drag & drop your files (not more than 5 at once)