Skip to content

Commit

Permalink
test: rename formal arguments and trivial refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Nov 13, 2024
1 parent c912995 commit 04f983c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/test/java/testjoltjni/app/helloworld/HelloWorld.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,17 @@ int onContactValidate(long body1Va, long body2Va, double offsetX, double offsetY
return ValidateResult.AcceptAllContactsForThisBodyPair.ordinal();
}

public void onContactAdded(long body1Va, long body2Va, long manifoldVa, long settingsVa)
public void onContactAdded(long inBody1, long inBody2, long inManifold, long ioSettings)
{
cout .print( "A contact was added" + endl);
}

public void onContactPersisted(long body1Va, long body2Va, long manifoldVa, long settingsVa)
public void onContactPersisted(long inBody1, long inBody2, long inManifold, long ioSettings)
{
cout .print( "A contact was persisted" + endl);
}

public void onContactRemoved(long pairVa)
public void onContactRemoved(long inSubShapePair)
{
cout .print( "A contact was removed" + endl);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@ of this software and associated documentation files (the "Software"), to deal
class RagdollScene implements PerformanceTestScene
{

RagdollScene(int inNumPilesPerAxis, int inPileSize, float inVerticalSeparation) {
this.mNumPilesPerAxis = inNumPilesPerAxis;
this.mPileSize = inPileSize;
this.mVerticalSeparation = inVerticalSeparation;
RagdollScene(int inNumPilesPerAxis, int inPileSize, float inVerticalSeparation)
{
mNumPilesPerAxis=inNumPilesPerAxis;mPileSize=inPileSize;mVerticalSeparation=inVerticalSeparation;
}

public String GetName()
Expand Down Expand Up @@ -104,7 +103,7 @@ public void StartTest(PhysicsSystem inPhysicsSystem, EMotionQuality inMotionQu

// Create ragdoll piles
Mt19937 random=new Mt19937();
UniformRealDistribution angle = new UniformRealDistribution(0.0f, Jolt.JPH_PI);
UniformRealDistribution angle=new UniformRealDistribution(0.0f, JPH_PI);
int group_id = 1;
for (int row = 0; row < mNumPilesPerAxis; ++row)
for (int col = 0; col < mNumPilesPerAxis; ++col)
Expand Down

0 comments on commit 04f983c

Please sign in to comment.