From b85bfcad91af7e8184526632d9c09c4a0a98e94a Mon Sep 17 00:00:00 2001 From: stephengold Date: Tue, 26 Nov 2024 11:39:47 -0800 Subject: [PATCH] samples: publicize 2 constructors and 2 utility methods --- .../testjoltjni/app/samples/ObjectLayerPairFilterImpl.java | 2 +- .../app/samples/ObjectVsBroadPhaseLayerFilterImpl.java | 2 +- src/test/java/testjoltjni/app/samples/SoftBodyCreator.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/testjoltjni/app/samples/ObjectLayerPairFilterImpl.java b/src/test/java/testjoltjni/app/samples/ObjectLayerPairFilterImpl.java index 4883a23d..18280dee 100644 --- a/src/test/java/testjoltjni/app/samples/ObjectLayerPairFilterImpl.java +++ b/src/test/java/testjoltjni/app/samples/ObjectLayerPairFilterImpl.java @@ -31,7 +31,7 @@ of this software and associated documentation files (the "Software"), to deal /// Class that determines if two object layers can collide public class ObjectLayerPairFilterImpl extends ObjVsObjFilter { - ObjectLayerPairFilterImpl() { + public ObjectLayerPairFilterImpl() { super(Layers.NUM_LAYERS); disableLayer(Layers.UNUSED1); disableLayer(Layers.UNUSED2); diff --git a/src/test/java/testjoltjni/app/samples/ObjectVsBroadPhaseLayerFilterImpl.java b/src/test/java/testjoltjni/app/samples/ObjectVsBroadPhaseLayerFilterImpl.java index b6535348..90268635 100644 --- a/src/test/java/testjoltjni/app/samples/ObjectVsBroadPhaseLayerFilterImpl.java +++ b/src/test/java/testjoltjni/app/samples/ObjectVsBroadPhaseLayerFilterImpl.java @@ -32,7 +32,7 @@ of this software and associated documentation files (the "Software"), to deal /// Class that determines if an object layer can collide with a broadphase layer public class ObjectVsBroadPhaseLayerFilterImpl extends ObjVsBpFilter { - ObjectVsBroadPhaseLayerFilterImpl() { + public ObjectVsBroadPhaseLayerFilterImpl() { super(Layers.NUM_LAYERS, BroadPhaseLayers.NUM_LAYERS); disableBp(BroadPhaseLayers.UNUSED); disableObj(Layers.UNUSED1); diff --git a/src/test/java/testjoltjni/app/samples/SoftBodyCreator.java b/src/test/java/testjoltjni/app/samples/SoftBodyCreator.java index ca304cc5..842a0b30 100644 --- a/src/test/java/testjoltjni/app/samples/SoftBodyCreator.java +++ b/src/test/java/testjoltjni/app/samples/SoftBodyCreator.java @@ -84,7 +84,7 @@ static SoftBodySharedSettingsRef CreateCloth(int inGridSizeX, int inGridSizeZ, f return settings.toRef(); } -static SoftBodySharedSettingsRef CreateClothWithFixatedCorners(int inGridSizeX, int inGridSizeZ, float inGridSpacing) +public static SoftBodySharedSettingsRef CreateClothWithFixatedCorners(int inGridSizeX, int inGridSizeZ, float inGridSpacing) { BiFunction inv_mass = (Integer inX, Integer inZ) -> { return (inX == 0 && inZ == 0) @@ -96,7 +96,7 @@ static SoftBodySharedSettingsRef CreateClothWithFixatedCorners(int inGridSizeX, return CreateCloth(inGridSizeX, inGridSizeZ, inGridSpacing, inv_mass); } -static SoftBodySharedSettingsRef CreateCube(int inGridSize, float inGridSpacing) +public static SoftBodySharedSettingsRef CreateCube(int inGridSize, float inGridSpacing) { Vec3Arg cOffset = Vec3.sReplicate(-0.5f * inGridSpacing * (inGridSize - 1));