Skip to content

Commit

Permalink
samples: publicize 2 constructors and 2 utility methods
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Nov 26, 2024
1 parent 3494b92 commit b85bfca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/testjoltjni/app/samples/SoftBodyCreator.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<Integer,Integer,Float> inv_mass = (Integer inX, Integer inZ) -> {
return (inX == 0 && inZ == 0)
Expand All @@ -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));

Expand Down

0 comments on commit b85bfca

Please sign in to comment.