expanding_polytope_algorithm
Constants
- loose_edges :
Float32Array
keep track of edges we need to fix after removing faces
Functions
- write_face(faces, index, a, b, c)
- expanding_polytope_algorithm(result, result_offset, a, b, c, d, coll1, coll2)
TODO: needs to be tested thoroughly, intended to be working with GJK
- construct_normal(result_offset, edge_index, p_x, p_y, p_z)
loose_edges : Float32Array
keep track of edges we need to fix after removing faces
Kind: global constant
write_face(faces, index, a, b, c)
Kind: global function
Param | Type |
---|---|
faces | Array.<number> | Float32Array |
index | number |
a | Array.<number> |
b | Array.<number> |
c | Array.<number> |
expanding_polytope_algorithm(result, result_offset, a, b, c, d, coll1, coll2)
TODO: needs to be tested thoroughly, intended to be working with GJK
Kind: global function
Param | Type |
---|---|
result | Array.<number> |
result_offset | number |
a | Array.<number> |
b | Array.<number> |
c | Array.<number> |
d | Array.<number> |
coll1 | AbstractShape3D |
coll2 | AbstractShape3D |
construct_normal(result_offset, edge_index, p_x, p_y, p_z)
Kind: global function
Param | Type |
---|---|
result_offset | number |
edge_index | number |
p_x | number |
p_y | number |
p_z | number |