Skip to content

Commit bc88fa9

Browse files
committed
Added CompoundShapeSettings AddShapeShape / AddShapeShapeSettings to replace AddShape
1 parent 79fcb26 commit bc88fa9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ add_custom_command(
222222
OUTPUT ${JOLT_TYPING}
223223
COMMAND npx webidl-dts-gen -e -d -i jolt.idl -o ${JOLT_TYPING} -n Jolt
224224
DEPENDS jolt.idl
225-
COMMENT "Generating JoltPhysics.js bindings"
225+
COMMENT "Generating JoltPhysics.js typing"
226226
VERBATIM)
227227

228228
add_custom_command(

JoltJS.idl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,9 @@ ConvexHullShape implements ConvexShape;
10441044

10451045
// Compound shape
10461046
interface CompoundShapeSettings {
1047-
void AddShape([Const, Ref] Vec3 inPosition, [Const, Ref] Quat inRotation, [Const] ShapeSettings inShape, unsigned long inUserData);
1047+
void AddShape([Const, Ref] Vec3 inPosition, [Const, Ref] Quat inRotation, [Const] ShapeSettings inShape, unsigned long inUserData); // Deprecated
1048+
[BindTo="AddShape"] void AddShapeShapeSettings([Const, Ref] Vec3 inPosition, [Const, Ref] Quat inRotation, [Const] ShapeSettings inShape, unsigned long inUserData);
1049+
[BindTo="AddShape"] void AddShapeShape([Const, Ref] Vec3 inPosition, [Const, Ref] Quat inRotation, [Const] Shape inShape, unsigned long inUserData);
10481050
};
10491051

10501052
CompoundShapeSettings implements ShapeSettings;

0 commit comments

Comments
 (0)