Преглед на файлове

Added accessor to get the vehicle constraint

Jorrit Rouwe преди 11 месеца
родител
ревизия
2d7176a2d2
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      Jolt/Physics/Vehicle/VehicleController.h

+ 4 - 0
Jolt/Physics/Vehicle/VehicleController.h

@@ -46,6 +46,10 @@ public:
 	explicit					VehicleController(VehicleConstraint &inConstraint) : mConstraint(inConstraint) { }
 	explicit					VehicleController(VehicleConstraint &inConstraint) : mConstraint(inConstraint) { }
 	virtual						~VehicleController() = default;
 	virtual						~VehicleController() = default;
 
 
+	/// Access the vehicle constraint that this controller is part of
+	VehicleConstraint &			GetConstraint()								{ return mConstraint; }
+	const VehicleConstraint &	GetConstraint() const						{ return mConstraint; }
+
 protected:
 protected:
 	// The functions below are only for the VehicleConstraint
 	// The functions below are only for the VehicleConstraint
 	friend class VehicleConstraint;
 	friend class VehicleConstraint;