-
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.
VehicleDifferentialSettings: refactor
- Loading branch information
1 parent
cd62d7d
commit 1a4f1a8
Showing
1 changed file
with
4 additions
and
15 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 |
---|---|---|
|
@@ -28,29 +28,18 @@ of this software and associated documentation files (the "Software"), to deal | |
* @author Stephen Gold [email protected] | ||
*/ | ||
public class VehicleDifferentialSettings 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. | ||
* Instantiate with the specified container and native object. | ||
* | ||
* @param vehicle the underlying {@code WheeledVehicleControllerSettings} | ||
* @param container the containing object, or {@code null} if none | ||
* @param settingsVa the virtual address of the native object to assign (not | ||
* zero) | ||
*/ | ||
VehicleDifferentialSettings( | ||
WheeledVehicleControllerSettings vehicle, long settingsVa) { | ||
this.vehicle = vehicle; | ||
setVirtualAddress(settingsVa, null); | ||
VehicleDifferentialSettings(JoltPhysicsObject container, long settingsVa) { | ||
super(container, settingsVa); | ||
} | ||
// ************************************************************************* | ||
// new methods exposed | ||
|