Difference between revisions of "BND"

From Mm2kiwi
Jump to: navigation, search
Line 2: Line 2:
  
 
<i>vp4x4_BOUND.bnd</i><br>
 
<i>vp4x4_BOUND.bnd</i><br>
<code>
+
<pre>
 
version: 1.01<br>
 
version: 1.01<br>
 
verts: 12<br>  
 
verts: 12<br>  
Line 42: Line 42:
 
tri 10  1  9  0 <br>
 
tri 10  1  9  0 <br>
 
tri 1  10  2  0 <br>
 
tri 1  10  2  0 <br>
</code>
+
</pre>
  
 
BND's can have their own materials (grass, cobblestone, etc.) depending on what the purpose of the BND is (car's collision box, drivable surfaces, etc.)
 
BND's can have their own materials (grass, cobblestone, etc.) depending on what the purpose of the BND is (car's collision box, drivable surfaces, etc.)

Revision as of 23:29, 11 January 2012

BND is a simple ASCII format file used to define the collision box of a PKG object. An example of a BND file would be this:

vp4x4_BOUND.bnd

version: 1.01<br>
verts: 12<br> 
materials: 1<br> 
edges: 0<br>
polys: 13<br> 
<br>
v	-1.237810	0.624240	2.996410<br> 
v	-1.237810	1.771920	2.827500<br> 
v	-1.237810	2.202820	-0.881580<br> 
v	-1.237810	1.310590	-2.904570<br> 
v	-1.237810	0.420690	-2.904570<br> 
v	1.243870	0.624240	2.996410<br> 
v	1.243870	0.420690	-2.904570<br> 
v	1.243870	1.310590	-2.904570<br> 
v	1.243870	2.202820	-0.881580<br> 
v	1.243870	1.792910	2.827500<br> 
v	-1.237810	2.192200	1.307540<br> 
v	1.243870	2.192200	1.307540<br> 

mtl default {<br>
	elasticity: 0.100000<br> 
	friction: 0.500000<br> 
	effect: none<br>
	sound: 0<br>
}<br>
<br>
quad 0  1  2  3  0 <br>
tri 3  4  0  0 <br>
quad 5  6  7  8  0 <br>
quad 11  9  5  8  0 <br>
quad 0  4  6  5  0 <br>
quad 4  3  7  6  0 <br>
quad 2  10  11  8  0 <br>
tri 1  0  5  0 <br>
tri 5  9  1  0 <br>
quad 8  7  3  2  0 <br>
tri 9  11  10  0 <br>
tri 10  1  9  0 <br>
tri 1  10  2  0 <br>

BND's can have their own materials (grass, cobblestone, etc.) depending on what the purpose of the BND is (car's collision box, drivable surfaces, etc.)