- Hands-On Game Development with WebAssembly
- Rick Battagline
- 153字
- 2021-06-24 13:41:12
Compound colliders
A compound collider is when a game object uses multiple colliders to determine whether there was a collision. We are going to use compound circle colliders on our ship to improve the accuracy of our ship collision detection while still providing the increased speed of using circle colliders. We will cover our player's ship and our enemy ship with three circles. Our projectiles are a circle shape, so using a circle for those is entirely natural. There is no reason you need to limit compound colliders to using only one shape of collider. Internally, a compound collider could mix circle colliders with rectangle colliders or any other type you like.
The following diagram shows a hypothetical compound collider made up of a circle and two rectangle colliders:

In the next section, we will learn how to implement a basic circle collision detection algorithm.
- 深入理解Spring Cloud與實戰(zhàn)
- 顯卡維修知識精解
- 電腦軟硬件維修大全(實例精華版)
- 基于Proteus和Keil的C51程序設(shè)計項目教程(第2版):理論、仿真、實踐相融合
- The Deep Learning with Keras Workshop
- Hands-On Machine Learning with C#
- Mastering Adobe Photoshop Elements
- 分布式系統(tǒng)與一致性
- Arduino BLINK Blueprints
- 基于Proteus仿真的51單片機應(yīng)用
- Blender Quick Start Guide
- Hands-On Artificial Intelligence for Banking
- 微型計算機系統(tǒng)原理及應(yīng)用:國產(chǎn)龍芯處理器的軟件和硬件集成(基礎(chǔ)篇)
- 3D Printing Blueprints
- Spring Security 3.x Cookbook