Skip to content

Commit

Permalink
Bind SubShapeID1 and SubShapeID2 in shapecasting API
Browse files Browse the repository at this point in the history
  • Loading branch information
LPGhatguy committed Dec 19, 2024
1 parent ed025e6 commit c162e32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions JoltC/Functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ typedef struct JPC_ShapeCastResult {
JPC_Vec3 ContactPointOn2;
JPC_Vec3 PenetrationAxis;
float PenetrationDepth;
// SubShapeID SubShapeID1;
// SubShapeID SubShapeID2;
JPC_SubShapeID SubShapeID1;
JPC_SubShapeID SubShapeID2;
JPC_BodyID BodyID2;
// Face Shape1Face;
// Face Shape2Face;
Expand Down
4 changes: 2 additions & 2 deletions JoltC/JoltC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ static JPC_ShapeCastResult to_jpc(JPH::ShapeCastResult in) {
out.ContactPointOn2 = to_jpc(in.mContactPointOn2);
out.PenetrationAxis = to_jpc(in.mPenetrationAxis);
out.PenetrationDepth = in.mPenetrationDepth;
// SubShapeID SubShapeID1;
// SubShapeID SubShapeID2;
out.SubShapeID1 = to_jpc(in.mSubShapeID1);
out.SubShapeID2 = to_jpc(in.mSubShapeID2);
out.BodyID2 = to_jpc(in.mBodyID2);
// Face Shape1Face;
// Face Shape2Face;
Expand Down

0 comments on commit c162e32

Please sign in to comment.