Game Development Reference
In-Depth Information
Deforming a terrain in real time
A deformable terrain is something that can have a serious effect on the gameplay, or it can
simply be a cosmetic bonus. It can be used for impact craters or games that require excava-
tion.
We'll base the deformation around the Control class pattern as this allows us to offset the
code in a manageable and reusable way. The recipe will trigger the deformation based on a
mouse click, and it will use a ray to detect the collision point.
Search WWH ::




Custom Search