2 * Copyright (c) 2009-2010 jMonkeyEngine
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
12 * * Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
16 * * Neither the name of 'jMonkeyEngine' nor the names of its contributors
17 * may be used to endorse or promote products derived from this software
18 * without specific prior written permission.
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 * Author: Normen Hansen
36 #include "com_jme3_bullet_joints_SliderJoint.h"
37 #include "jmeBulletUtil.h"
44 * Class: com_jme3_bullet_joints_SliderJoint
45 * Method: getLowerLinLimit
48 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getLowerLinLimit
49 (JNIEnv * env, jobject object, jlong jointId) {
50 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
52 jclass newExc = env->FindClass("java/lang/NullPointerException");
53 env->ThrowNew(newExc, "The native object does not exist.");
56 return joint->getLowerLinLimit();
60 * Class: com_jme3_bullet_joints_SliderJoint
61 * Method: setLowerLinLimit
64 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setLowerLinLimit
65 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
66 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
68 jclass newExc = env->FindClass("java/lang/NullPointerException");
69 env->ThrowNew(newExc, "The native object does not exist.");
72 joint->setLowerLinLimit(value);
76 * Class: com_jme3_bullet_joints_SliderJoint
77 * Method: getUpperLinLimit
80 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getUpperLinLimit
81 (JNIEnv * env, jobject object, jlong jointId) {
82 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
84 jclass newExc = env->FindClass("java/lang/NullPointerException");
85 env->ThrowNew(newExc, "The native object does not exist.");
88 return joint->getUpperLinLimit();
92 * Class: com_jme3_bullet_joints_SliderJoint
93 * Method: setUpperLinLimit
96 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setUpperLinLimit
97 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
98 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
100 jclass newExc = env->FindClass("java/lang/NullPointerException");
101 env->ThrowNew(newExc, "The native object does not exist.");
104 joint->setUpperLinLimit(value);
108 * Class: com_jme3_bullet_joints_SliderJoint
109 * Method: getLowerAngLimit
112 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getLowerAngLimit
113 (JNIEnv * env, jobject object, jlong jointId) {
114 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
116 jclass newExc = env->FindClass("java/lang/NullPointerException");
117 env->ThrowNew(newExc, "The native object does not exist.");
120 return joint->getLowerAngLimit();
124 * Class: com_jme3_bullet_joints_SliderJoint
125 * Method: setLowerAngLimit
128 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setLowerAngLimit
129 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
130 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
132 jclass newExc = env->FindClass("java/lang/NullPointerException");
133 env->ThrowNew(newExc, "The native object does not exist.");
136 joint->setLowerAngLimit(value);
140 * Class: com_jme3_bullet_joints_SliderJoint
141 * Method: getUpperAngLimit
144 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getUpperAngLimit
145 (JNIEnv * env, jobject object, jlong jointId) {
146 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
148 jclass newExc = env->FindClass("java/lang/NullPointerException");
149 env->ThrowNew(newExc, "The native object does not exist.");
152 return joint->getUpperAngLimit();
156 * Class: com_jme3_bullet_joints_SliderJoint
157 * Method: setUpperAngLimit
160 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setUpperAngLimit
161 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
162 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
164 jclass newExc = env->FindClass("java/lang/NullPointerException");
165 env->ThrowNew(newExc, "The native object does not exist.");
168 joint->setUpperAngLimit(value);
172 * Class: com_jme3_bullet_joints_SliderJoint
173 * Method: getSoftnessDirLin
176 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getSoftnessDirLin
177 (JNIEnv * env, jobject object, jlong jointId) {
178 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
180 jclass newExc = env->FindClass("java/lang/NullPointerException");
181 env->ThrowNew(newExc, "The native object does not exist.");
184 return joint->getSoftnessDirLin();
188 * Class: com_jme3_bullet_joints_SliderJoint
189 * Method: setSoftnessDirLin
192 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setSoftnessDirLin
193 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
194 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
196 jclass newExc = env->FindClass("java/lang/NullPointerException");
197 env->ThrowNew(newExc, "The native object does not exist.");
200 joint->setSoftnessDirLin(value);
204 * Class: com_jme3_bullet_joints_SliderJoint
205 * Method: getRestitutionDirLin
208 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getRestitutionDirLin
209 (JNIEnv * env, jobject object, jlong jointId) {
210 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
212 jclass newExc = env->FindClass("java/lang/NullPointerException");
213 env->ThrowNew(newExc, "The native object does not exist.");
216 return joint->getRestitutionDirLin();
220 * Class: com_jme3_bullet_joints_SliderJoint
221 * Method: setRestitutionDirLin
224 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setRestitutionDirLin
225 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
226 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
228 jclass newExc = env->FindClass("java/lang/NullPointerException");
229 env->ThrowNew(newExc, "The native object does not exist.");
232 joint->setRestitutionDirLin(value);
236 * Class: com_jme3_bullet_joints_SliderJoint
237 * Method: getDampingDirLin
240 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getDampingDirLin
241 (JNIEnv * env, jobject object, jlong jointId) {
242 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
244 jclass newExc = env->FindClass("java/lang/NullPointerException");
245 env->ThrowNew(newExc, "The native object does not exist.");
248 return joint->getDampingDirLin();
252 * Class: com_jme3_bullet_joints_SliderJoint
253 * Method: setDampingDirLin
256 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setDampingDirLin
257 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
258 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
260 jclass newExc = env->FindClass("java/lang/NullPointerException");
261 env->ThrowNew(newExc, "The native object does not exist.");
264 joint->setDampingDirLin(value);
268 * Class: com_jme3_bullet_joints_SliderJoint
269 * Method: getSoftnessDirAng
272 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getSoftnessDirAng
273 (JNIEnv * env, jobject object, jlong jointId) {
274 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
276 jclass newExc = env->FindClass("java/lang/NullPointerException");
277 env->ThrowNew(newExc, "The native object does not exist.");
280 return joint->getSoftnessDirAng();
284 * Class: com_jme3_bullet_joints_SliderJoint
285 * Method: setSoftnessDirAng
288 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setSoftnessDirAng
289 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
290 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
292 jclass newExc = env->FindClass("java/lang/NullPointerException");
293 env->ThrowNew(newExc, "The native object does not exist.");
296 joint->setSoftnessDirAng(value);
300 * Class: com_jme3_bullet_joints_SliderJoint
301 * Method: getRestitutionDirAng
304 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getRestitutionDirAng
305 (JNIEnv * env, jobject object, jlong jointId) {
306 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
308 jclass newExc = env->FindClass("java/lang/NullPointerException");
309 env->ThrowNew(newExc, "The native object does not exist.");
312 return joint->getRestitutionDirAng();
316 * Class: com_jme3_bullet_joints_SliderJoint
317 * Method: setRestitutionDirAng
320 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setRestitutionDirAng
321 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
322 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
324 jclass newExc = env->FindClass("java/lang/NullPointerException");
325 env->ThrowNew(newExc, "The native object does not exist.");
328 joint->setRestitutionDirAng(value);
332 * Class: com_jme3_bullet_joints_SliderJoint
333 * Method: getDampingDirAng
336 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getDampingDirAng
337 (JNIEnv * env, jobject object, jlong jointId) {
338 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
340 jclass newExc = env->FindClass("java/lang/NullPointerException");
341 env->ThrowNew(newExc, "The native object does not exist.");
344 return joint->getDampingDirAng();
348 * Class: com_jme3_bullet_joints_SliderJoint
349 * Method: setDampingDirAng
352 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setDampingDirAng
353 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
354 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
356 jclass newExc = env->FindClass("java/lang/NullPointerException");
357 env->ThrowNew(newExc, "The native object does not exist.");
360 joint->setDampingDirAng(value);
364 * Class: com_jme3_bullet_joints_SliderJoint
365 * Method: getSoftnessLimLin
368 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getSoftnessLimLin
369 (JNIEnv * env, jobject object, jlong jointId) {
370 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
372 jclass newExc = env->FindClass("java/lang/NullPointerException");
373 env->ThrowNew(newExc, "The native object does not exist.");
376 return joint->getSoftnessLimLin();
380 * Class: com_jme3_bullet_joints_SliderJoint
381 * Method: setSoftnessLimLin
384 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setSoftnessLimLin
385 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
386 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
388 jclass newExc = env->FindClass("java/lang/NullPointerException");
389 env->ThrowNew(newExc, "The native object does not exist.");
392 joint->setSoftnessLimLin(value);
396 * Class: com_jme3_bullet_joints_SliderJoint
397 * Method: getRestitutionLimLin
400 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getRestitutionLimLin
401 (JNIEnv * env, jobject object, jlong jointId) {
402 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
404 jclass newExc = env->FindClass("java/lang/NullPointerException");
405 env->ThrowNew(newExc, "The native object does not exist.");
408 return joint->getRestitutionLimLin();
412 * Class: com_jme3_bullet_joints_SliderJoint
413 * Method: setRestitutionLimLin
416 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setRestitutionLimLin
417 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
418 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
420 jclass newExc = env->FindClass("java/lang/NullPointerException");
421 env->ThrowNew(newExc, "The native object does not exist.");
424 joint->setRestitutionLimLin(value);
428 * Class: com_jme3_bullet_joints_SliderJoint
429 * Method: getDampingLimLin
432 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getDampingLimLin
433 (JNIEnv * env, jobject object, jlong jointId) {
434 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
436 jclass newExc = env->FindClass("java/lang/NullPointerException");
437 env->ThrowNew(newExc, "The native object does not exist.");
440 return joint->getDampingLimLin();
444 * Class: com_jme3_bullet_joints_SliderJoint
445 * Method: setDampingLimLin
448 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setDampingLimLin
449 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
450 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
452 jclass newExc = env->FindClass("java/lang/NullPointerException");
453 env->ThrowNew(newExc, "The native object does not exist.");
456 joint->setDampingLimLin(value);
460 * Class: com_jme3_bullet_joints_SliderJoint
461 * Method: getSoftnessLimAng
464 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getSoftnessLimAng
465 (JNIEnv * env, jobject object, jlong jointId) {
466 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
468 jclass newExc = env->FindClass("java/lang/NullPointerException");
469 env->ThrowNew(newExc, "The native object does not exist.");
472 return joint->getSoftnessLimAng();
476 * Class: com_jme3_bullet_joints_SliderJoint
477 * Method: setSoftnessLimAng
480 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setSoftnessLimAng
481 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
482 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
484 jclass newExc = env->FindClass("java/lang/NullPointerException");
485 env->ThrowNew(newExc, "The native object does not exist.");
488 joint->setSoftnessLimAng(value);
492 * Class: com_jme3_bullet_joints_SliderJoint
493 * Method: getRestitutionLimAng
496 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getRestitutionLimAng
497 (JNIEnv * env, jobject object, jlong jointId) {
498 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
500 jclass newExc = env->FindClass("java/lang/NullPointerException");
501 env->ThrowNew(newExc, "The native object does not exist.");
504 return joint->getRestitutionLimAng();
508 * Class: com_jme3_bullet_joints_SliderJoint
509 * Method: setRestitutionLimAng
512 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setRestitutionLimAng
513 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
514 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
516 jclass newExc = env->FindClass("java/lang/NullPointerException");
517 env->ThrowNew(newExc, "The native object does not exist.");
520 joint->setRestitutionLimAng(value);
524 * Class: com_jme3_bullet_joints_SliderJoint
525 * Method: getDampingLimAng
528 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getDampingLimAng
529 (JNIEnv * env, jobject object, jlong jointId) {
530 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
532 jclass newExc = env->FindClass("java/lang/NullPointerException");
533 env->ThrowNew(newExc, "The native object does not exist.");
536 return joint->getDampingLimAng();
540 * Class: com_jme3_bullet_joints_SliderJoint
541 * Method: setDampingLimAng
544 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setDampingLimAng
545 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
546 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
548 jclass newExc = env->FindClass("java/lang/NullPointerException");
549 env->ThrowNew(newExc, "The native object does not exist.");
552 joint->setDampingLimAng(value);
556 * Class: com_jme3_bullet_joints_SliderJoint
557 * Method: getSoftnessOrthoLin
560 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getSoftnessOrthoLin
561 (JNIEnv * env, jobject object, jlong jointId) {
562 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
564 jclass newExc = env->FindClass("java/lang/NullPointerException");
565 env->ThrowNew(newExc, "The native object does not exist.");
568 return joint->getSoftnessOrthoLin();
572 * Class: com_jme3_bullet_joints_SliderJoint
573 * Method: setSoftnessOrthoLin
576 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setSoftnessOrthoLin
577 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
578 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
580 jclass newExc = env->FindClass("java/lang/NullPointerException");
581 env->ThrowNew(newExc, "The native object does not exist.");
584 joint->setSoftnessOrthoLin(value);
588 * Class: com_jme3_bullet_joints_SliderJoint
589 * Method: getRestitutionOrthoLin
592 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getRestitutionOrthoLin
593 (JNIEnv * env, jobject object, jlong jointId) {
594 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
596 jclass newExc = env->FindClass("java/lang/NullPointerException");
597 env->ThrowNew(newExc, "The native object does not exist.");
600 return joint->getRestitutionOrthoLin();
604 * Class: com_jme3_bullet_joints_SliderJoint
605 * Method: setRestitutionOrthoLin
608 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setRestitutionOrthoLin
609 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
610 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
612 jclass newExc = env->FindClass("java/lang/NullPointerException");
613 env->ThrowNew(newExc, "The native object does not exist.");
616 joint->setRestitutionOrthoLin(value);
620 * Class: com_jme3_bullet_joints_SliderJoint
621 * Method: getDampingOrthoLin
624 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getDampingOrthoLin
625 (JNIEnv * env, jobject object, jlong jointId) {
626 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
628 jclass newExc = env->FindClass("java/lang/NullPointerException");
629 env->ThrowNew(newExc, "The native object does not exist.");
632 return joint->getDampingOrthoLin();
636 * Class: com_jme3_bullet_joints_SliderJoint
637 * Method: setDampingOrthoLin
640 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setDampingOrthoLin
641 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
642 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
644 jclass newExc = env->FindClass("java/lang/NullPointerException");
645 env->ThrowNew(newExc, "The native object does not exist.");
648 joint->setDampingOrthoLin(value);
652 * Class: com_jme3_bullet_joints_SliderJoint
653 * Method: getSoftnessOrthoAng
656 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getSoftnessOrthoAng
657 (JNIEnv * env, jobject object, jlong jointId) {
658 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
660 jclass newExc = env->FindClass("java/lang/NullPointerException");
661 env->ThrowNew(newExc, "The native object does not exist.");
664 return joint->getSoftnessOrthoAng();
668 * Class: com_jme3_bullet_joints_SliderJoint
669 * Method: setSoftnessOrthoAng
672 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setSoftnessOrthoAng
673 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
674 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
676 jclass newExc = env->FindClass("java/lang/NullPointerException");
677 env->ThrowNew(newExc, "The native object does not exist.");
680 joint->setSoftnessOrthoAng(value);
684 * Class: com_jme3_bullet_joints_SliderJoint
685 * Method: getRestitutionOrthoAng
688 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getRestitutionOrthoAng
689 (JNIEnv * env, jobject object, jlong jointId) {
690 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
692 jclass newExc = env->FindClass("java/lang/NullPointerException");
693 env->ThrowNew(newExc, "The native object does not exist.");
696 return joint->getRestitutionOrthoAng();
700 * Class: com_jme3_bullet_joints_SliderJoint
701 * Method: setRestitutionOrthoAng
704 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setRestitutionOrthoAng
705 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
706 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
708 jclass newExc = env->FindClass("java/lang/NullPointerException");
709 env->ThrowNew(newExc, "The native object does not exist.");
712 joint->setRestitutionOrthoAng(value);
716 * Class: com_jme3_bullet_joints_SliderJoint
717 * Method: getDampingOrthoAng
720 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getDampingOrthoAng
721 (JNIEnv * env, jobject object, jlong jointId) {
722 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
724 jclass newExc = env->FindClass("java/lang/NullPointerException");
725 env->ThrowNew(newExc, "The native object does not exist.");
728 return joint->getDampingOrthoAng();
732 * Class: com_jme3_bullet_joints_SliderJoint
733 * Method: setDampingOrthoAng
736 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setDampingOrthoAng
737 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
738 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
740 jclass newExc = env->FindClass("java/lang/NullPointerException");
741 env->ThrowNew(newExc, "The native object does not exist.");
744 joint->setDampingOrthoAng(value);
748 * Class: com_jme3_bullet_joints_SliderJoint
749 * Method: isPoweredLinMotor
752 JNIEXPORT jboolean JNICALL Java_com_jme3_bullet_joints_SliderJoint_isPoweredLinMotor
753 (JNIEnv * env, jobject object, jlong jointId) {
754 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
756 jclass newExc = env->FindClass("java/lang/NullPointerException");
757 env->ThrowNew(newExc, "The native object does not exist.");
760 return joint->getPoweredLinMotor();
764 * Class: com_jme3_bullet_joints_SliderJoint
765 * Method: setPoweredLinMotor
768 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setPoweredLinMotor
769 (JNIEnv * env, jobject object, jlong jointId, jboolean value) {
770 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
772 jclass newExc = env->FindClass("java/lang/NullPointerException");
773 env->ThrowNew(newExc, "The native object does not exist.");
776 joint->setPoweredLinMotor(value);
780 * Class: com_jme3_bullet_joints_SliderJoint
781 * Method: getTargetLinMotorVelocity
784 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getTargetLinMotorVelocity
785 (JNIEnv * env, jobject object, jlong jointId) {
786 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
788 jclass newExc = env->FindClass("java/lang/NullPointerException");
789 env->ThrowNew(newExc, "The native object does not exist.");
792 return joint->getTargetLinMotorVelocity();
796 * Class: com_jme3_bullet_joints_SliderJoint
797 * Method: setTargetLinMotorVelocity
800 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setTargetLinMotorVelocity
801 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
802 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
804 jclass newExc = env->FindClass("java/lang/NullPointerException");
805 env->ThrowNew(newExc, "The native object does not exist.");
808 joint->setTargetLinMotorVelocity(value);
812 * Class: com_jme3_bullet_joints_SliderJoint
813 * Method: getMaxLinMotorForce
816 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getMaxLinMotorForce
817 (JNIEnv * env, jobject object, jlong jointId) {
818 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
820 jclass newExc = env->FindClass("java/lang/NullPointerException");
821 env->ThrowNew(newExc, "The native object does not exist.");
824 return joint->getMaxLinMotorForce();
828 * Class: com_jme3_bullet_joints_SliderJoint
829 * Method: setMaxLinMotorForce
832 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setMaxLinMotorForce
833 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
834 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
836 jclass newExc = env->FindClass("java/lang/NullPointerException");
837 env->ThrowNew(newExc, "The native object does not exist.");
840 joint->setMaxLinMotorForce(value);
844 * Class: com_jme3_bullet_joints_SliderJoint
845 * Method: isPoweredAngMotor
848 JNIEXPORT jboolean JNICALL Java_com_jme3_bullet_joints_SliderJoint_isPoweredAngMotor
849 (JNIEnv * env, jobject object, jlong jointId) {
850 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
852 jclass newExc = env->FindClass("java/lang/NullPointerException");
853 env->ThrowNew(newExc, "The native object does not exist.");
856 return joint->getPoweredAngMotor();
860 * Class: com_jme3_bullet_joints_SliderJoint
861 * Method: setPoweredAngMotor
864 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setPoweredAngMotor
865 (JNIEnv * env, jobject object, jlong jointId, jboolean value) {
866 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
868 jclass newExc = env->FindClass("java/lang/NullPointerException");
869 env->ThrowNew(newExc, "The native object does not exist.");
872 joint->setPoweredAngMotor(value);
876 * Class: com_jme3_bullet_joints_SliderJoint
877 * Method: getTargetAngMotorVelocity
880 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getTargetAngMotorVelocity
881 (JNIEnv * env, jobject object, jlong jointId) {
882 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
884 jclass newExc = env->FindClass("java/lang/NullPointerException");
885 env->ThrowNew(newExc, "The native object does not exist.");
888 return joint->getTargetAngMotorVelocity();
892 * Class: com_jme3_bullet_joints_SliderJoint
893 * Method: setTargetAngMotorVelocity
896 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setTargetAngMotorVelocity
897 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
898 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
900 jclass newExc = env->FindClass("java/lang/NullPointerException");
901 env->ThrowNew(newExc, "The native object does not exist.");
904 joint->setTargetAngMotorVelocity(value);
908 * Class: com_jme3_bullet_joints_SliderJoint
909 * Method: getMaxAngMotorForce
912 JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getMaxAngMotorForce
913 (JNIEnv * env, jobject object, jlong jointId) {
914 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
916 jclass newExc = env->FindClass("java/lang/NullPointerException");
917 env->ThrowNew(newExc, "The native object does not exist.");
920 return joint->getMaxAngMotorForce();
924 * Class: com_jme3_bullet_joints_SliderJoint
925 * Method: setMaxAngMotorForce
928 JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setMaxAngMotorForce
929 (JNIEnv * env, jobject object, jlong jointId, jfloat value) {
930 btSliderConstraint* joint = reinterpret_cast<btSliderConstraint*>(jointId);
932 jclass newExc = env->FindClass("java/lang/NullPointerException");
933 env->ThrowNew(newExc, "The native object does not exist.");
936 joint->setMaxAngMotorForce(value);
940 * Class: com_jme3_bullet_joints_SliderJoint
941 * Method: createJoint
942 * Signature: (JJLcom/jme3/math/Vector3f;Lcom/jme3/math/Matrix3f;Lcom/jme3/math/Vector3f;Lcom/jme3/math/Matrix3f;Z)J
944 JNIEXPORT jlong JNICALL Java_com_jme3_bullet_joints_SliderJoint_createJoint
945 (JNIEnv * env, jobject object, jlong bodyIdA, jlong bodyIdB, jobject pivotA, jobject rotA, jobject pivotB, jobject rotB, jboolean useLinearReferenceFrameA) {
946 jmeClasses::initJavaClasses(env);
947 btRigidBody* bodyA = reinterpret_cast<btRigidBody*>(bodyIdA);
948 btRigidBody* bodyB = reinterpret_cast<btRigidBody*>(bodyIdB);
949 btMatrix3x3 mtx1 = btMatrix3x3();
950 btMatrix3x3 mtx2 = btMatrix3x3();
951 btTransform transA = btTransform(mtx1);
952 jmeBulletUtil::convert(env, pivotA, &transA.getOrigin());
953 jmeBulletUtil::convert(env, rotA, &transA.getBasis());
954 btTransform transB = btTransform(mtx2);
955 jmeBulletUtil::convert(env, pivotB, &transB.getOrigin());
956 jmeBulletUtil::convert(env, rotB, &transB.getBasis());
957 btSliderConstraint* joint = new btSliderConstraint(*bodyA, *bodyB, transA, transB, useLinearReferenceFrameA);
958 return reinterpret_cast<jlong>(joint);