Learning Android Game Development by Nikhil Malankar
Author:Nikhil Malankar
Language: eng
Format: epub
Tags: COM012040 - COMPUTERS / Programming / Games, COM071000 - COMPUTERS / Digital Media / Video and Animation, COM086000 - COMPUTERS / Computerized Home and Entertainment
Publisher: Packt Publishing
Published: 2017-05-26T05:56:26+00:00
Thus, this chapter will be divided into two main sections. The studies of collision detection and artificial intelligence are in themselves quite vast topics. For the sake of simplicity to serve our purpose, we will be taking a look at the most basic version of these topics to get an entry level understanding for being able to apply the knowledge of these concepts in our game. So without further ado, let's dive into this complex yet exciting topic of collision detection.
Collision detection
To explain it simply, collision is a short duration interaction between two bodies. There are many different types of collisions such as elastic and non-elastic. The study of the intersection of two or more objects overlapping each other is called as collision detection. It is one of the most complex pieces of computational mathematics and is divided into many types, such as:
Bounding Box Collision: This is the simplest form of collision techniques wherein we take two rectangles and check for collision if they overlap each other. For this, we need four coordinates of each rectangle, namely, the x and y position and width and height of both rectangles.
Circle Collision: This is the second simplest type of collision wherein we test for collisions between two circles. Here, the radius of two circles and x and y position of the center of the circles are taken into account to test for overlapping.
Separating Axis Theorem: This type of collision is a bit more complex than the other two mentioned earlier, primarily because this is used to detect collisions between two polygons.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(6533)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6416)
Kotlin in Action by Dmitry Jemerov(5065)
Odoo 15 Development Essentials - Fifth Edition by Daniel Reis & Greg Mader(3355)
Odoo 15 Development Essentials by Daniel Reis(2814)
React Native - Building Mobile Apps with JavaScript by Novick Vladimir(2531)
Learning Angular - Second Edition by Christoffer Noring(2359)
Pride and Prejudice by Jane Austen(2350)
Mobile Forensics Cookbook by Igor Mikhaylov(2017)
Computers For Seniors For Dummies by Nancy C. Muir(1996)
Bulletproof Android: Practical Advice for Building Secure Apps (Developer's Library) by Godfrey Nolan(1874)
Android Development with Kotlin by Marcin Moskala & Igor Wojda(1799)
Building Android UIs with Custom Views by Raimon Ràfols Montané(1791)
1936941139 (N) by Bob Rosenthal(1732)
Building Progressive Web Apps: Bringing the Power of Native to the Browser by Ater Tal(1727)
Hands-On Internet of Things with MQTT by Tim Pulver(1707)
Android App Development by Franceschi Hervé J.;(1702)
Ember.js in Action by Joachim Haagen Skeie(1689)
Hands-On Design Patterns with React Native by Mateusz Grzesiukiewicz(1656)
