CVH

From FreeAllegiance Wiki
Revision as of 13:55, 25 September 2009 by KGJV (talk | contribs) (Created page with '=='''C'''on'''V'''ex '''H'''ull file== ===Purpose=== CVH files are used by the engine to perform collision detection. a CVH is usually generated from 3D model file using [http...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

ConVex Hull file

Purpose

CVH files are used by the engine to perform collision detection.

a CVH is usually generated from 3D model file using QHull

AMT can also generate CVH files.

Format

CVH files are standard text files.

The format is:


[radius] [ellipse equation x] [ellipse equation y] [ellipse equation z] [ellipse Radius Multiplier]

[n = number of hulls]

[hull_1
[p= number of vertices] [number of adjacents]  [x] [y] [z] (center of the hull)
 [vertex_1
   [x] [y] [z] [A = number of Adjacencies] (coords of the vertex) 
     [a1] .. [aA] (indexes of adjacent vertices, 1 = vertex_1, etc)
 ]
  ...
 [vertex_p]
]

[hull_2]

...

[hull_n]

[frame_1 
 [name] 
  x,y,z position vector 
  x,y,z direction vector
]
[frame_2]
...