@@ -52,4 +52,154 @@ JNIEXPORT jlong JNICALL Java_com_github_stephengold_joltjni_MotorcycleController
5252 * Signature: ()J
5353 */
5454JNIEXPORT jlong JNICALL Java_com_github_stephengold_joltjni_MotorcycleControllerSettings_createDefault
55- BODYOF_CREATE_DEFAULT_TARGET(MotorcycleControllerSettings)
55+ BODYOF_CREATE_DEFAULT_TARGET(MotorcycleControllerSettings)
56+
57+ /*
58+ * Class: com_github_stephengold_joltjni_MotorcycleControllerSettings
59+ * Method: getLeanSmoothingFactor
60+ * Signature: (J)F
61+ */
62+ JNIEXPORT jfloat JNICALL Java_com_github_stephengold_joltjni_MotorcycleControllerSettings_getLeanSmoothingFactor
63+ (JNIEnv *, jclass, jlong settingsVa) {
64+ const MotorcycleControllerSettings * const pSettings
65+ = reinterpret_cast <MotorcycleControllerSettings *> (settingsVa);
66+ const float result = pSettings->mLeanSmoothingFactor ;
67+ return result;
68+ }
69+
70+ /*
71+ * Class: com_github_stephengold_joltjni_MotorcycleControllerSettings
72+ * Method: getLeanSpringConstant
73+ * Signature: (J)F
74+ */
75+ JNIEXPORT jfloat JNICALL Java_com_github_stephengold_joltjni_MotorcycleControllerSettings_getLeanSpringConstant
76+ (JNIEnv *, jclass, jlong settingsVa) {
77+ const MotorcycleControllerSettings * const pSettings
78+ = reinterpret_cast <MotorcycleControllerSettings *> (settingsVa);
79+ const float result = pSettings->mLeanSpringConstant ;
80+ return result;
81+ }
82+
83+ /*
84+ * Class: com_github_stephengold_joltjni_MotorcycleControllerSettings
85+ * Method: getLeanSpringDamping
86+ * Signature: (J)F
87+ */
88+ JNIEXPORT jfloat JNICALL Java_com_github_stephengold_joltjni_MotorcycleControllerSettings_getLeanSpringDamping
89+ (JNIEnv *, jclass, jlong settingsVa) {
90+ const MotorcycleControllerSettings * const pSettings
91+ = reinterpret_cast <MotorcycleControllerSettings *> (settingsVa);
92+ const float result = pSettings->mLeanSpringDamping ;
93+ return result;
94+ }
95+
96+ /*
97+ * Class: com_github_stephengold_joltjni_MotorcycleControllerSettings
98+ * Method: getLeanSpringIntegrationCoefficient
99+ * Signature: (J)F
100+ */
101+ JNIEXPORT jfloat JNICALL Java_com_github_stephengold_joltjni_MotorcycleControllerSettings_getLeanSpringIntegrationCoefficient
102+ (JNIEnv *, jclass, jlong settingsVa) {
103+ const MotorcycleControllerSettings * const pSettings
104+ = reinterpret_cast <MotorcycleControllerSettings *> (settingsVa);
105+ const float result = pSettings->mLeanSpringIntegrationCoefficient ;
106+ return result;
107+ }
108+
109+ /*
110+ * Class: com_github_stephengold_joltjni_MotorcycleControllerSettings
111+ * Method: getLeanSpringIntegrationCoefficientDecay
112+ * Signature: (J)F
113+ */
114+ JNIEXPORT jfloat JNICALL Java_com_github_stephengold_joltjni_MotorcycleControllerSettings_getLeanSpringIntegrationCoefficientDecay
115+ (JNIEnv *, jclass, jlong settingsVa) {
116+ const MotorcycleControllerSettings * const pSettings
117+ = reinterpret_cast <MotorcycleControllerSettings *> (settingsVa);
118+ const float result = pSettings->mLeanSpringIntegrationCoefficientDecay ;
119+ return result;
120+ }
121+
122+ /*
123+ * Class: com_github_stephengold_joltjni_MotorcycleControllerSettings
124+ * Method: getMaxLeanAngle
125+ * Signature: (J)F
126+ */
127+ JNIEXPORT jfloat JNICALL Java_com_github_stephengold_joltjni_MotorcycleControllerSettings_getMaxLeanAngle
128+ (JNIEnv *, jclass, jlong settingsVa) {
129+ const MotorcycleControllerSettings * const pSettings
130+ = reinterpret_cast <MotorcycleControllerSettings *> (settingsVa);
131+ const float result = pSettings->mMaxLeanAngle ;
132+ return result;
133+ }
134+
135+ /*
136+ * Class: com_github_stephengold_joltjni_MotorcycleControllerSettings
137+ * Method: setLeanSmoothingFactor
138+ * Signature: (JF)V
139+ */
140+ JNIEXPORT void JNICALL Java_com_github_stephengold_joltjni_MotorcycleControllerSettings_setLeanSmoothingFactor
141+ (JNIEnv *, jclass, jlong settingsVa, jfloat factor) {
142+ MotorcycleControllerSettings * const pSettings
143+ = reinterpret_cast <MotorcycleControllerSettings *> (settingsVa);
144+ pSettings->mLeanSmoothingFactor = factor;
145+ }
146+
147+ /*
148+ * Class: com_github_stephengold_joltjni_MotorcycleControllerSettings
149+ * Method: setLeanSpringConstant
150+ * Signature: (JF)V
151+ */
152+ JNIEXPORT void JNICALL Java_com_github_stephengold_joltjni_MotorcycleControllerSettings_setLeanSpringConstant
153+ (JNIEnv *, jclass, jlong settingsVa, jfloat k) {
154+ MotorcycleControllerSettings * const pSettings
155+ = reinterpret_cast <MotorcycleControllerSettings *> (settingsVa);
156+ pSettings->mLeanSpringConstant = k;
157+ }
158+
159+ /*
160+ * Class: com_github_stephengold_joltjni_MotorcycleControllerSettings
161+ * Method: setLeanSpringDamping
162+ * Signature: (JF)V
163+ */
164+ JNIEXPORT void JNICALL Java_com_github_stephengold_joltjni_MotorcycleControllerSettings_setLeanSpringDamping
165+ (JNIEnv *, jclass, jlong settingsVa, jfloat damping) {
166+ MotorcycleControllerSettings * const pSettings
167+ = reinterpret_cast <MotorcycleControllerSettings *> (settingsVa);
168+ pSettings->mLeanSpringDamping = damping;
169+ }
170+
171+ /*
172+ * Class: com_github_stephengold_joltjni_MotorcycleControllerSettings
173+ * Method: setLeanSpringIntegrationCoefficient
174+ * Signature: (JF)V
175+ */
176+ JNIEXPORT void JNICALL Java_com_github_stephengold_joltjni_MotorcycleControllerSettings_setLeanSpringIntegrationCoefficient
177+ (JNIEnv *, jclass, jlong settingsVa, jfloat coefficient) {
178+ MotorcycleControllerSettings * const pSettings
179+ = reinterpret_cast <MotorcycleControllerSettings *> (settingsVa);
180+ pSettings->mLeanSpringIntegrationCoefficient = coefficient;
181+ }
182+
183+ /*
184+ * Class: com_github_stephengold_joltjni_MotorcycleControllerSettings
185+ * Method: setLeanSpringIntegrationCoefficientDecay
186+ * Signature: (JF)V
187+ */
188+ JNIEXPORT void JNICALL Java_com_github_stephengold_joltjni_MotorcycleControllerSettings_setLeanSpringIntegrationCoefficientDecay
189+ (JNIEnv *, jclass, jlong settingsVa, jfloat decay) {
190+ MotorcycleControllerSettings * const pSettings
191+ = reinterpret_cast <MotorcycleControllerSettings *> (settingsVa);
192+ pSettings->mLeanSpringIntegrationCoefficientDecay = decay;
193+ }
194+
195+ /*
196+ * Class: com_github_stephengold_joltjni_MotorcycleControllerSettings
197+ * Method: setMaxLeanAngle
198+ * Signature: (JF)V
199+ */
200+ JNIEXPORT void JNICALL Java_com_github_stephengold_joltjni_MotorcycleControllerSettings_setMaxLeanAngle
201+ (JNIEnv *, jclass, jlong settingsVa, jfloat angle) {
202+ MotorcycleControllerSettings * const pSettings
203+ = reinterpret_cast <MotorcycleControllerSettings *> (settingsVa);
204+ pSettings->mMaxLeanAngle = angle;
205+ }
0 commit comments