Skip to content

Commit

Permalink
update bullet library (#354)
Browse files Browse the repository at this point in the history
* update bullet library

* fix bullet.d.ts export
  • Loading branch information
yiwenxue authored May 18, 2023
1 parent e764488 commit 813fe37
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions emscripten/bullet/bullet.asm.js

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions emscripten/bullet/bullet.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ declare namespace Bullet {
TypedConstraint_getFixedBody(): ptr;
HingeConstraint_new(ptr0: ptr, ptr1: ptr, ptr2: ptr, ptr3: ptr): ptr;
HingeConstraint_setFrames(ptr0: ptr, ptr1: ptr, ptr2: ptr): void;
HingeConstraint_setLimit(ptr: ptr, low: number, upper: number, softness: number, biasFactor: number, relaxationFactor: number): void;
HingeConstraint_setAngularOnly(ptr: ptr, angular: number): void;
HingeConstraint_enableMotor(ptr: ptr, enable: boolean): void;
HingeConstraint_setMotorVelocity(ptr: ptr, velocity: number): void;
HingeConstraint_setMaxMotorImpulse(ptr: ptr, maxImpulse: number): void;
HingeConstraint_setMotorTarget(ptr: ptr, target: number, dt: number): void;
HingeConstraint_setLimit(p: ptr, low: number, upper: number, softness: number, biasFactor: number, relaxationFactor: number): void;
HingeConstraint_setAngularOnly(p: ptr, angular: number): void;
HingeConstraint_enableMotor(p: ptr, enable: boolean): void;
HingeConstraint_setMotorVelocity(p: ptr, velocity: number): void;
HingeConstraint_setMaxMotorImpulse(p: ptr, maxImpulse: number): void;
HingeConstraint_setMotorTarget(p: ptr, target: number, dt: number): void;
P2PConstraint_new(ptr0: ptr, ptr1: ptr, ptr2: ptr, ptr3: ptr): ptr;
P2PConstraint_setPivotA(ptr0: ptr, ptr1: ptr): void;
P2PConstraint_setPivotB(ptr0: ptr, ptr1: ptr): void;
Expand Down Expand Up @@ -255,13 +255,13 @@ declare namespace Bullet {
// CharacterController
ControllerHitReport_new(): ptr;
CharacterController_getGhostObject(ptrCCT: ptr): ptr;
ControllerHit_getCurrentController(ptr: ptr): ptr;
ControllerHit_getHitWorldPos(ptr: ptr): ptr;
ControllerHit_getHitWorldNormal(ptr: ptr): ptr;
ControllerHit_getHitMotionDir(ptr: ptr): ptr; //CCT hit Motion direction
ControllerHit_getHitMotionLength(ptr: ptr): number; //CCT hit Motion length
ControllerShapeHit_getHitShape(ptr: ptr): ptr;
ControllerShapeHit_getHitCollisionObject(ptr: ptr): ptr;
ControllerHit_getCurrentController(p: ptr): ptr;
ControllerHit_getHitWorldPos(p: ptr): ptr;
ControllerHit_getHitWorldNormal(p: ptr): ptr;
ControllerHit_getHitMotionDir(p: ptr): ptr; //CCT hit Motion direction
ControllerHit_getHitMotionLength(p: ptr): number; //CCT hit Motion length
ControllerShapeHit_getHitShape(p: ptr): ptr;
ControllerShapeHit_getHitCollisionObject(p: ptr): ptr;
CharacterController_move(ptrCCT: ptr, ptrMovement: ptr, minDist: number, deltaTime: number):number;
CharacterController_getPosition(ptrCCT: ptr);
CharacterController_setContactOffset(ptrCCT: ptr, v: number);
Expand Down
Binary file modified emscripten/bullet/bullet.wasm
Binary file not shown.

0 comments on commit 813fe37

Please sign in to comment.