Skip to content

Commit

Permalink
samples: publicize 10 Initialize() methods
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Nov 5, 2024
1 parent 6b3f576 commit e919520
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ of this software and associated documentation files (the "Software"), to deal
*/
public class BroadPhaseCastRayTest extends BroadPhaseTest{

void Initialize()
public void Initialize()
{
super.Initialize();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class BroadPhaseInsertionTest extends BroadPhaseTest{
DefaultRandomEngine mRandomGenerator = new DefaultRandomEngine();
int mCurrentBody = 0;
int mDirection = 1;
void Initialize()
public void Initialize()
{
super.Initialize();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ void CreateBalancedDistribution(BodyManager inBodyManager, int inNumBodies, floa
}
}

void Initialize()
public void Initialize()
{
// Create body manager
mBodyManager = new BodyManager();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ of this software and associated documentation files (the "Software"), to deal
*/
public class GearConstraintTest extends Test{

void Initialize()
public void Initialize()
{
// Floor
CreateFloor();
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
* https://github.com/jrouwe/JoltPhysics/blob/master/Samples/Tests/Constraints/SpringTest.cpp
*/
public class SpringTest extends Test{
void Initialize()
public void Initialize()
{
// Floor
CreateFloor();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class MotorcycleTest extends VehicleTest{
float mBrake,mForward,mRight;
float mPreviousForward=1f;

void Initialize()
public void Initialize()
{
super.Initialize();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class TankTest extends VehicleTest{
float mBarrelPitch = 0.0f;
boolean mFire = false;

void Initialize()
public void Initialize()
{
super.Initialize();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class VehicleStressTest extends VehicleTest{
List<VehicleConstraintRef> mVehicles = new ArrayList<>();
float mHandBrake, mForward, mRight;

void Initialize()
public void Initialize()
{
CreateMeshTerrain();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class Line {Line(RVec3 s, RVec3 e){mStart=e;mEnd=e;}
}
List<Line> mTrackData = new ArrayList<>();

void Initialize()
public void Initialize()
{
if (sSceneName.equals( "Flat") )
{
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/testjoltjni/app/samples/water/BoatTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class BoatTest extends Test{
float mForward = 0.0f;
float mRight = 0.0f;

void Initialize()
public void Initialize()
{
// Create boat
ConvexHullShapeSettings boat_hull = new ConvexHullShapeSettings();
Expand Down

0 comments on commit e919520

Please sign in to comment.