2D Game Collision Detection: An introduction to clashing geometry in games

Thomas Schwarzl

買這商品的人也買了...

相關主題

商品描述

Are You Wondering How 2D Collision Detection In Video Games Works?

Learn how to determine shot impacts, find out which enemies are covered by lines of sight, recognize collisions of race cars or simply check if the mouse cursor floats above a button.

This Book Is Designed For Game Developers Who Want To Implement Fast And Efficient 2D Collision Detection.

The only prerequisite you need is basic knowledge in procedural programming. If you are familiar with any popular programming language like C, C++, Java, C# or Objective-C you have all you need to understand the code examples throughout the book.

What You Will Get From This Book.

The following topics get explained in detail:

  • 2D vector mathematics,
  • how to spot collisions of various 2D shapes,
  • simple yet effective body representation of game objects,
  • identifying clashing objects in motion and
  • plenty of optimization tricks.

Your Knowledge Will Be Built Up From Scratch.

The book is written for beginners, new to the topic of geometrical 2D collision detection. There are plenty of illustrations and code examples which make it easy to understand the necessary concepts and algorithms.

Use This Book As A Reference Guide.

Aside its introductional nature this book is also designed to serve as a reference guide for looking up specific collision detection functions. So advanced game programmers will derive benefit from it as well.

All The Presented Code Is Ready For Immediate Use.

The code forged throughout the book can be downloaded from the book's website and can be used right away.



商品描述(中文翻譯)

你是否想知道2D碰撞檢測在視頻遊戲中是如何工作的?

學習如何確定射擊的影響,找出哪些敵人被視線所覆蓋,識別賽車的碰撞,或者僅僅檢查鼠標游標是否懸停在按鈕上。

這本書專為希望實現快速高效的2D碰撞檢測的遊戲開發人員而設計。

你唯一需要的先決條件是基本的程序設計知識。如果你熟悉任何流行的編程語言,如C、C++、Java、C#或Objective-C,你就有了理解本書中的代碼示例所需的一切。

本書將詳細解釋以下主題:

- 2D向量數學
- 如何檢測各種2D形狀的碰撞
- 遊戲物體的簡單而有效的身體表示
- 識別運動中的碰撞物體
- 大量的優化技巧

你的知識將從零開始建立。

本書針對初學者撰寫,對於幾何2D碰撞檢測這一主題還不熟悉的讀者。書中有大量的插圖和代碼示例,使必要的概念和算法易於理解。

本書除了作為介紹性質的書籍外,還設計為作為查找特定碰撞檢測函數的參考指南。因此,高級遊戲程序員也會從中受益。

所有提供的代碼都可以立即使用。

你可以從本書的網站下載並立即使用書中的代碼。