- 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.
- Augmented Reality with Kinect
- FPGA從入門到精通(實戰篇)
- Python GUI Programming:A Complete Reference Guide
- 電腦常見問題與故障排除
- Svelte 3 Up and Running
- 分布式系統與一致性
- 基于Apache Kylin構建大數據分析平臺
- 微軟互聯網信息服務(IIS)最佳實踐 (微軟技術開發者叢書)
- SiFive 經典RISC-V FE310微控制器原理與實踐
- 計算機組裝維修與外設配置(高等職業院校教改示范教材·計算機系列)
- 數字媒體專業英語(第2版)
- Java Deep Learning Cookbook
- 單片機原理及應用:基于C51+Proteus仿真
- FL Studio Cookbook
- Hands-On Deep Learning for Images with TensorFlow