feat(physics): 16 - a rock's own shape: phys_convex (Jolt's convex hull of a point cloud) and phys_scaled (one hull, every rock of that shape at its own size); the libraries rebuilt on the Mac and the PC (still KERNEL32 alone); hull_shape_test holds the scale and that a yaw turns a body the way a renderer turns an instance
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
bb2a4c10af
commit
dd86dce171
9 changed files with 80 additions and 7 deletions
|
|
@ -14,6 +14,8 @@ extern function jph_shape_capsule(half_h: float, r: float) -> pointer = "jph_sha
|
|||
extern function jph_shape_cylinder(half_h: float, r: float) -> pointer = "jph_shape_cylinder"
|
||||
extern function jph_shape_dome(r: float, h: float) -> pointer = "jph_shape_dome"
|
||||
extern function jph_shape_offset(s: pointer, x: float, y: float, z: float, yaw: float) -> pointer = "jph_shape_offset"
|
||||
extern function jph_shape_convex(v: pointer, n: int, radius: float) -> pointer = "jph_shape_convex"
|
||||
extern function jph_shape_scaled(s: pointer, k: float) -> pointer = "jph_shape_scaled"
|
||||
extern function jph_shape_heightfield(h: pointer, n: int, ox: float, oz: float, cell: float) -> pointer = "jph_shape_heightfield"
|
||||
extern function jph_shape_mesh(v: pointer, nv: int, tri: pointer, nt: int) -> pointer = "jph_shape_mesh"
|
||||
extern function jph_shape_free(s: pointer) -> void = "jph_shape_free"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue