Skip to content

Commit

Permalink
bugfix: ClassCastException in BoatTest.java with flavor=Dp
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jan 24, 2025
1 parent 006b043 commit ad940dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/testjoltjni/app/samples/water/BoatTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2024 Stephen Gold
Copyright (c) 2024-2025 Stephen Gold
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -127,7 +127,7 @@ else if (inParams.mKeyboard->IsKeyPressed(DIK_RIGHT))

RVec3 GetWaterSurfacePosition(RVec3Arg inXZPosition)
{
return new RVec3(inXZPosition.xx(), cMinWaterHeight + sin(0.1f * (float)(inXZPosition.getZ()) + mTime) * (cMaxWaterHeight - cMinWaterHeight), inXZPosition.zz());
return new RVec3(inXZPosition.xx(), cMinWaterHeight + sin(0.1f * inXZPosition.z() + mTime) * (cMaxWaterHeight - cMinWaterHeight), inXZPosition.zz());
}

public void PrePhysicsUpdate( PreUpdateParams inParams)
Expand Down

0 comments on commit ad940dd

Please sign in to comment.