Skip to content

Commit

Permalink
Export get closest hit fraction (#462)
Browse files Browse the repository at this point in the history
* export getClosestHitFraction for raycast result
  • Loading branch information
minggo authored Oct 14, 2024
1 parent 1f94cd0 commit 5506af9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions emscripten/bullet/bullet.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ declare namespace Bullet {
ccAllRayCallback_getHitPointWorld(p: ptr): ptr;
ccAllRayCallback_getHitNormalWorld(p: ptr): ptr;
ccAllRayCallback_getCollisionShapePtrs(p: ptr): ptr;
ccAllRayCallback_getClosestHitFraction(p: ptr): number;

ccClosestRayCallback_static(): ptr;
ccClosestRayCallback_setFlags(p: ptr, flag: number): void;
Expand All @@ -282,12 +283,14 @@ declare namespace Bullet {
ccAllConvexCallback_getHitPointWorld(p: ptr): ptr;
ccAllConvexCallback_getHitNormalWorld(p: ptr): ptr;
ccAllConvexCallback_getCollisionShapePtrs(p: ptr): ptr;
ccAllConvexCallback_getClosestHitFraction(p: ptr): number;

ccClosestConvexCallback_static(): ptr;
ccClosestConvexCallback_reset(p: ptr, p0: ptr, p1: ptr, m: number, q: boolean): void;
ccClosestConvexCallback_getHitPointWorld(p: ptr): ptr;
ccClosestConvexCallback_getHitNormalWorld(p: ptr): ptr;
ccClosestConvexCallback_getCollisionShapePtr(p: ptr): ptr;
ccClosestConvexCallback_getClosestHitFraction(p: ptr): number;

ccMaterial_new(): ptr;
ccMaterial_set(p: ptr, r: number, f: number, rf: number, sf: number): void;
Expand Down
18 changes: 9 additions & 9 deletions emscripten/bullet/bullet.release.asm.js

Large diffs are not rendered by default.

Binary file modified emscripten/bullet/bullet.release.wasm.wasm
Binary file not shown.

0 comments on commit 5506af9

Please sign in to comment.