-
-
Notifications
You must be signed in to change notification settings - Fork 104
Collision Series 4 Collision with a Heightmap
#Collision Series 4: Collision with a Heightmap#
Area Games: 3D Graphics, Games: Collision Submitted 9/27/2007 Code Sample
Description:
This sample demonstrates how to move objects along a heightmap. It is based on the [Generated Geometry](https://github.com/DDReaper/XNAGameStudio/wiki/Generated Geometry) sample, which creates a landscape from a bitmap. We build upon that sample, showing how to quickly calculate the height of any point on that heightmap.
Sample Overview
The Generated Geometry sample introduced the concept of a heightmap. In that sample, a content processor reads a bitmap and uses the intensity of its pixels as height values on a terrain. A logical next step in this technique is to place objects on the terrain. This sample demonstrates that technique by placing a ball on the generated terrain.
Other items in the Collision Series:
[Collision Series 1: 2D Rectangle Collision](https://github.com/DDReaper/XNAGameStudio/wiki/Collision Series 1 2D Rectangle Collision) [Collision Series 2: 2D Per-Pixel Collision](https://github.com/DDReaper/XNAGameStudio/wiki/Collision Series 2 2D Per-Pixel Collision) [Collision Series 3: 2D Collision with Transformed Objects](https://github.com/DDReaper/XNAGameStudio/wiki/Collision Series 3 2D Collision with Transformed Objects) [Collision Series 5: Heightmap Collision with Normals](https://github.com/DDReaper/XNAGameStudio/wiki/Collision Series 5 Heightmap Collision with Normals)
All content and source code downloaded from this page are bound to the Microsoft Permissive License (Ms-PL).
downloads
HeightmapCollisionSample_4_0.zip
Size: 1.00MB
Source code and assets for the Collision Series 4: Heightmap Sample (XNA Game Studio 4.0).