Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AllHitsConvexResultCallback #433

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions ammo.idl
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,20 @@ interface ClosestConvexResultCallback {
};
ClosestConvexResultCallback implements ConvexResultCallback;

[Prefix="btCollisionWorld::"]
interface AllHitsConvexResultCallback {
void AllHitsConvexResultCallback([Const, Ref] btVector3 convexFromWorld, [Const, Ref] btVector3 convexToWorld);
[Const] attribute btCollisionObject m_closestHitCollisionObject;
attribute float m_closestHitCollisionFraction;
[Value] attribute btConstCollisionObjectArray m_hitCollisionObjects;
[Value] attribute btVector3 m_convexFromWorld;
[Value] attribute btVector3 m_convexToWorld;
[Value] attribute btVector3Array m_hitNormalWorld;
[Value] attribute btVector3Array m_hitPointWorld;
[Value] attribute btScalarArray m_hitFractions;
};
AllHitsConvexResultCallback implements ConvexResultCallback;

interface btCollisionShape {
void setLocalScaling([Const, Ref] btVector3 scaling);
[Const, Ref] btVector3 getLocalScaling();
Expand Down
958 changes: 20 additions & 938 deletions builds/ammo.js

Large diffs are not rendered by default.

Loading