Skip to content

Commit

Permalink
VehicleDifferentialSettings: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Oct 15, 2024
1 parent cd62d7d commit 1a4f1a8
Showing 1 changed file with 4 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a4f1a8

Please sign in to comment.