-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor the VehicleTransmissionSettings class
- Loading branch information
1 parent
9339890
commit 8ae2e81
Showing
1 changed file
with
2 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,29 +30,20 @@ of this software and associated documentation files (the "Software"), to deal | |
* @author Stephen Gold [email protected] | ||
*/ | ||
public class VehicleTransmissionSettings extends JoltPhysicsObject { | ||
// ************************************************************************* | ||
// fields | ||
|
||
/** | ||
* prevent premature garbage collection of the underlying | ||
* {@code WheeledVehicleControllerSettings} | ||
*/ | ||
final private WheeledVehicleControllerSettings vehicle; | ||
// ************************************************************************* | ||
// constructors | ||
|
||
/** | ||
* Instantiate a settings with the specified native object assigned but not | ||
* owned. | ||
* | ||
* @param vehicle the underlying {@code WheeledVehicleControllerSettings} | ||
* @param vehicle the containing object, or {@code null} if none | ||
* @param settingsVa the virtual address of the native object to assign (not | ||
* zero) | ||
*/ | ||
VehicleTransmissionSettings( | ||
WheeledVehicleControllerSettings vehicle, long settingsVa) { | ||
this.vehicle = vehicle; | ||
setVirtualAddress(settingsVa, null); | ||
super(vehicle, settingsVa); | ||
} | ||
// ************************************************************************* | ||
// new methods exposed | ||
|