Compare commits

...

187 Commits

Author SHA1 Message Date
Stephen Gold
8291d6192b gradle.properties: ready for 3.2.4-stable build 2019-07-12 23:17:00 -07:00
travis-ci
a8bf087fd1 [ci skip] bullet: update linux natives 2019-07-12 05:23:43 +00:00
travis-ci
4c3234ec1d [ci skip] bullet: update osx natives 2019-07-12 05:23:33 +00:00
appveyor
13500861c8 [ci skip] bullet: update windows natives 2019-07-12 05:23:02 +00:00
sgold
3523ab06d3 fix for issue #1141 2019-07-11 22:12:29 -07:00
travis-ci
b0d86f3480 [ci skip] bullet: update osx natives 2019-07-10 17:40:58 +00:00
travis-ci
0a485ecfc0 [ci skip] bullet: update linux natives 2019-07-10 17:40:06 +00:00
appveyor
65aea20367 [ci skip] bullet: update windows natives 2019-07-10 17:39:04 +00:00
Stephen Gold
4bb8280fb2 fix for issue #1135 (ConeJoint causes rigid body to disappear) 2019-07-10 10:27:06 -07:00
sgold
b2a4f10782 jme3-examples: apply the "dirt_normal.png" normal map where appropriate 2019-07-10 10:26:22 -07:00
Stephen Gold
c996b50a3f make native Bullet the default for jme3-examples (instead of JBullet) 2019-07-10 10:25:33 -07:00
Remy
8f3feb8012 when the image object has a ColorSpace value we pass it on, else we leave it at the default value. fix for #1106 (#1110) 2019-07-10 10:25:05 -07:00
sgold
eb5d0bea2a fix GImpact scaling in jme3-jbullet: issue #1120 2019-07-10 10:24:18 -07:00
sgold
bf41bae18a fix GImpact scaling in jme3-bullet (native Bullet) 2019-07-10 10:22:49 -07:00
Stephen Gold
db89c64e4b jme3-bullet fix for issue #1125 (physics shapes don't match TerrainQuad) 2019-07-10 10:21:38 -07:00
Stephen Gold
200714e2a8 add test for issue #1125 (heightfield shapes don't match TerrainQuad) 2019-07-10 10:20:47 -07:00
Stephen Gold
190e42a677 fix for issue #1116 (NPE in TerrainGridAlphaMapTest) 2019-07-10 10:20:02 -07:00
Lou H
341117dd6e #1121-updateBound() call for PQTorus geometry updates (#1122)
* #1121-updateBound() call for PQTorus geometry updates

* World bounds test added for #1121

* World bounds test enhancements for #1121

* Updated test comment
2019-07-10 10:19:04 -07:00
Stephen Gold
a5c1cd87e8 fix for issue #1127 ("Reset" action in TestHoveringTank) 2019-07-10 10:18:09 -07:00
Stephen Gold
6efc25f5b2 fix for issue #1126 (TestHoveringTank assertion failures) 2019-07-10 10:17:43 -07:00
richardTingle
ccfaeab9d4 Issue 1113. Allow for Particle emitters that constantly have their particlesPerSec set to still emit (#1114)
Previously if particlesPerSec was constantly set timeDifference could never grow large enough to emit a particle as timeDifference was reset to zero each time. This fixes that problem while still ensuring that timeDifference can't have grown very very large (leading to huge numbers of particles being emitted) by capping the timeDifference at the point where its just about to emit a particle.

Discussed at https://hub.jmonkeyengine.org/t/particle-emitter-cannot-emit-particles-if-its-emissions-per-second-is-updated-every-frame/41930/2
2019-07-10 10:16:07 -07:00
Stephen Gold
a582b7d1ca #1107-Fix Javadoc warnings in OpenJDK 9+ (#1112) 2019-07-10 10:09:39 -07:00
Karan Nehra
dc4b71ce2b Attempt to fixing 1074 (#1093)
* Attempt to fixing 1074

* Added method implementations in GlRenderer

* Added test.

* Added test to jme-examples

* Some changes to resolve merge conficts

* Fixes

* Indent-fixes

* Documented the class and added stop()

* Fixed a minor error

* Fixed build gradles

* Removed line ending
2019-07-10 10:02:16 -07:00
Lou Hamersly
b0db8923d1 Fix Javadoc warnings in OpenJDK 9+ 2019-07-10 10:00:29 -07:00
Stephen Gold
5f55bf4d5d TestIssue99: specify panel widths, clarify interpretation of results 2019-07-10 09:55:51 -07:00
Stephen Gold
0814858284 fix for issue #1037 (TestHoveringTank hull-shape performance issue) 2019-07-10 09:48:48 -07:00
Stephen Gold
06aa011208 add a test case for issue #99 (blendMode="multiply" in NiftyGUI) 2019-07-10 09:48:03 -07:00
Stephen Gold
a516d18699 fix issue #1060: bt32BitAxisSweep3 not implemented 2019-07-10 09:47:16 -07:00
Remy Van Doosselaer
b1e7399d97 fixed wrong reference check 2019-07-10 09:46:32 -07:00
quazi-irfan
14281eb8cb Fix printing if stencil is enable or disable 2019-07-10 09:45:10 -07:00
Riccardo Balbo
37ee57e845 j3md Fix for default textures (#1052) 2019-07-10 09:44:20 -07:00
James Adam
67b32790ee Add tests for com.jme3/scene.mesh.VirtualIndexBuffer 2019-07-10 09:42:15 -07:00
Stephen Gold
31aab243e6 Add bullet extraction directory, bin and vscode config to gitignore 2019-07-10 09:40:56 -07:00
Stephen Gold
5220659a0b TestGltfLoading: comment 2019-07-10 09:37:14 -07:00
appveyor
447a9df7bb [ci skip] bullet: update windows natives 2019-03-18 23:34:01 +00:00
Stephen Gold
e2245aa2f3 gradle.properties: ready for 3.2.3-stable build 2019-03-18 16:25:05 -07:00
Stephen Gold
ba88127bd2 delete an unfinished MonkAnim test (TestModelExportingCloning) 2019-03-18 13:44:28 -07:00
Stephen Gold
417defb43a delete a duplicate test that was never added to the master branch 2019-03-18 13:21:00 -07:00
Stephen Gold
ff0b1d6a70 fix TestIssue1004 for v3.2, which has a different Sinbad asset 2019-03-17 23:34:05 -07:00
Stephen Gold
088b48ec6b Revert "Add tests for com.jme3.math.Vector3f"
This reverts commit 6689f8634828d14107ceabc94114e56f4c3bfaf7.
2019-03-17 18:02:36 -07:00
Stephen Gold
a91775041f FbxLoader: comment out some debug spam to System.out - see issue #1025 2019-03-17 16:23:56 -07:00
James Adam
6689f86348 Add tests for com.jme3.math.Vector3f 2019-03-17 16:23:42 -07:00
James Adam
56172a43f9 Add tests for com.jme3.math.FastMath 2019-03-17 16:23:30 -07:00
Stephen Gold
d180917af4 remove more unused imports 2019-03-17 16:23:09 -07:00
Stephen Gold
53eff66f9c more corrections in diagnostic messages 2019-03-17 16:22:37 -07:00
Stephen Gold
7cf2023c35 more comment-only corrections 2019-03-17 16:22:10 -07:00
travis-ci
ca8970c760 [ci skip] bullet: update linux natives 2019-03-17 23:13:14 +00:00
travis-ci
b9dccbb060 [ci skip] bullet: update osx natives 2019-03-17 23:12:38 +00:00
appveyor
8b04ff92c2 [ci skip] bullet: update windows natives 2019-03-17 23:10:16 +00:00
Riccardo Balbo
243f9f0063 fix issue #1029, integrate PR #1031
* Use gContactStartedCallback instead of gContactProcessedCallback to detect collision events. ( fix for #1029 )

* Fix  Conversion loses qualifiers
2019-03-17 15:58:56 -07:00
Stephen Gold
6471035226 added a test for issue #1029 2019-03-17 15:58:37 -07:00
Stephen Gold
8a294f9892 one more jme3-core JavaDoc correction (comments only) 2019-03-17 15:57:53 -07:00
Stephen Gold
92e923df20 spelling corrections in diagnostic messages 2019-03-17 15:53:50 -07:00
Stephen Gold
ca33035941 complete the fix for issue #1027 2019-03-17 15:52:59 -07:00
Stephen Gold
acd056584d fix for issue #1027 - result of rayTest() 2019-03-17 15:52:45 -07:00
Stephen Gold
47d7fdd930 jme3-examples/jme3-lwjgl3 JavaDoc corrections (comments only) 2019-03-17 15:52:00 -07:00
Stephen Gold
1d7f7bae57 jme3-networking/jme3-plugins JavaDoc corrections (comments only) 2019-03-17 15:46:51 -07:00
Stephen Gold
058d729e55 jme3-jbullet JavaDoc corrections (comments only) 2019-03-17 15:46:38 -07:00
Stephen Gold
e2d4f91eef jme3-terrain JavaDoc corrections (comments only) 2019-03-17 15:46:11 -07:00
Stephen Gold
50f62624c4 jme3-vr JavaDoc corrections (comments only) 2019-03-17 15:45:31 -07:00
Stephen Gold
0ca9205bab jme3-desktop/jme3-effects JavaDoc corrections (comments only) 2019-03-17 15:25:47 -07:00
Stephen Gold
4f085c6254 jme3-core JavaDoc corrections (comments only) 2019-03-17 15:22:07 -07:00
Stephen Gold
5e313740ca jme3-blender JavaDoc corrections (comments only) 2019-03-17 15:08:15 -07:00
Stephen Gold
95c92e5b5b jme3-android JavaDoc corrections (comments only) 2019-03-17 15:07:52 -07:00
Stephen Gold
643914c2be avoid extraneous newlines to stderr during glTF import 2019-03-17 15:07:27 -07:00
Stephen Gold
62ce6ca406 fix for issue #1026: TestPhysicsCharacter spins Sinbad too fast 2019-03-17 15:07:12 -07:00
Ali-RS
db1b8f9eb4 Removed unused imports. (#1020) 2019-03-17 15:06:02 -07:00
FennelFetish
a655134bb7 Added tests for traversal order when using SceneGraphVisitor. 2019-03-17 14:46:38 -07:00
FennelFetish
bee38da3b8 Fixes depth-first-traversal order in Node.
DFSMode needs to be passed to the recursive calls so the selected order is also applied further down the scenegraph.
2019-03-17 14:41:15 -07:00
Ali-RS
dbb1bba646 Bump LWJGL3 version to '3.2.1' 2019-03-17 14:40:11 -07:00
Stephen Gold
4541b0bde4 GuiEvent: add JavaDoc (comments only) 2019-03-17 14:39:39 -07:00
Stephen Gold
7361aba280 fix for issue #1003 (Loading multiple GLB files with animations fails) 2019-03-17 14:32:00 -07:00
Stephen Gold
d61391ea69 PhysicsTestHelper: fix JavaDoc warnings (comments only) 2019-03-17 14:31:33 -07:00
Stephen Gold
8f8b6b93e5 more fix for issue #993 (TestGltfLoading throws AssetNotFoundException) 2019-03-17 14:26:40 -07:00
Stephen Gold
eabd05acdf test&fix for issue #1004 (RagdollUtils can't handle 16-bit bone indices) 2019-03-17 14:21:06 -07:00
Stephen Gold
c09a36d284 fix for issue #993 (TestGltfLoading throws AssetNotFoundException) 2019-03-17 13:43:47 -07:00
Stephen Gold
a3f88aa164 fix issue #997 (cloning UpdateControl throws IllegalArgumentException) 2019-03-17 13:37:01 -07:00
Stephen Gold
594834f996 fix for issue #982: add town.zip file to repo, load different HTTP image 2019-03-17 13:30:51 -07:00
Stephen Gold
657dc75abf fix for issue #985: use a MaterialKey in TestAssetLinkNode 2019-03-17 13:30:33 -07:00
Stephen Gold
4c5682104d fix for issue #998: add ZIP file, remove "Jumps" and HttpZipLocator 2019-03-17 13:26:41 -07:00
Stephen Gold
f00f68224f TerrainTestTile: T key had to be pressed 2x before effect (see PR #827) 2019-03-17 13:25:53 -07:00
Stephen Gold
b8360100fe fixes for issue #994 (wildhouse.zip not found) 2019-03-17 13:25:28 -07:00
Stephen Gold
b06cf30b2c LwjglContext: correct a typo in a log message 2019-03-17 13:17:05 -07:00
Stephen Gold
27f5ea6bb0 fix for issue #983 (TestMusicStreaming crashes due to missing asset) 2019-03-17 13:16:32 -07:00
Stephen Gold
860b338ed2 fix for issue #992 (HelloCollision throws an AssetLoadException) 2019-03-17 13:16:08 -07:00
Toni Helenius
0d3b5a717f Updated Nifty to 1.4.3 and cleaned up the build 2019-03-17 13:15:43 -07:00
Stephen Gold
19b4a74070 fix for issue #988 (assertion failure in jme3test.games.CubeField) 2019-03-17 13:10:31 -07:00
Francivan Bezerra
0c7f194feb Fixed call to onJoyButtonEvent()
The method onJoyButtonEvent() was being called on every update(). Now it is called only when the state of a button changes (from not pressed to pressed and vice-versa).
2019-03-17 13:10:06 -07:00
TehLeo
61e19c6381 Added Texture Formats R16F, R32F, RG16F, RG32F. (#839) 2019-03-17 13:07:42 -07:00
appveyor
7f5a1b7dd5 [ci skip] bullet: update windows natives 2018-12-31 20:37:08 +00:00
Stephen Gold
ea23b6ad55 gradle.properties: ready for 3.2.2-stable build 2018-12-31 12:33:02 -08:00
Stephen Gold
97a26c4355 fix to TestConeVSFrustrum which was buried in commit 83aef82 2018-12-31 08:35:25 -08:00
appveyor
af7a209b69 [ci skip] bullet: update windows natives 2018-12-29 09:24:36 +00:00
Stephen Gold
ed800cc9ab correct jmeVersion in gradle.properties 2018-12-29 01:21:46 -08:00
Stephen Gold
6d25a29e0a .travis.yml: work around Travis's tag blindness using a regexp 2018-12-22 20:46:59 -08:00
appveyor
55e93fb7d5 [ci skip] bullet: update windows natives 2018-12-22 16:24:44 +00:00
Stephen Gold
c390e98120 gradle.properties: ready for 3.2.2-beta1 build 2018-12-22 08:19:05 -08:00
travis-ci
a391197f5c [ci skip] bullet: update linux natives 2018-12-22 06:44:17 +00:00
travis-ci
dd902da7a0 [ci skip] bullet: update osx natives 2018-12-22 06:43:28 +00:00
appveyor
6f435bfcd1 [ci skip] bullet: update windows natives 2018-12-22 06:39:06 +00:00
Stephen Gold
82b7eaa8d2 trivial change to cause rebuild of jme3-bullet-native 2018-12-21 22:35:11 -08:00
Stephen Gold
af6fa847ac fix part B of issue #632 2018-12-21 22:05:20 -08:00
Stephen Gold
13d9bafac7 fix part A of issue #632 2018-12-21 22:05:05 -08:00
Stephen Gold
5f39e5aafd fix issue #240 (TestBlenderObjectAnim fails with NPE) 2018-12-21 22:01:23 -08:00
Ali-RS
8558dcb44a Added a (hacky) fix for a Java Swing/AWT + GLFW interaction issue… (#968)
* Added a (hacky) fix for a Java Swing/AWT + GLFW interaction issue… 

… on Linux.

* Added a proper comment

* Added an extra call to System.gc() as recommendation from lwjgl’s @Spasi

"Run System.gc(), at least two times. Not sure how AWT handles native
resources, maybe there’s a finalizable/PhantomRef-ed resource that is not
released immediately, but a subsequent GC triggers a (too late) free. "
2018-12-21 22:01:05 -08:00
Stephen Gold
b5cb4c0c13 upgrade native Bullet to v2.87, which should fix issue #877 2018-12-21 21:59:31 -08:00
MeFisto94
5068f1980d Fixes #961 - Remove unused + deprecated Exception 2018-12-21 21:59:12 -08:00
Stephen Gold
e63a6255cd fix for JME issue #887 (debug mesh ignores scaling) 2018-12-21 21:57:02 -08:00
Paul Speed
6f6041f6ae Modified the J3M loader to be a little less like a 1980s text adventure.
Added a message to the exception thrown when using an invalid light mode.
Converted it to an IOException instead of the UnsupportedOperationException
(which is a runtime exception) so that the calling code will output a meaningful
error about which asset actually failed.
2018-12-21 21:56:42 -08:00
joliver82
990ad7a4bd Update android bullet native libraries 2018-12-21 21:56:14 -08:00
joliver82
af5d44b603 Update android bullet native, mk files and gradle adding header generation dependency 2018-12-21 21:55:55 -08:00
Stephen Gold
39c1c6ee0a fix issue #923 for native Bullet 2018-12-21 21:52:17 -08:00
JESTERRRRRR
d0d67af395 Particle tile number/UV calculation change (#930)
* Update ParticlePointMesh.java

* Update ParticleTriMesh.java
2018-12-21 21:51:59 -08:00
Stephen Gold
abe614cdec test and fix for issue #928: disabled native Bullet's QuickProf 2018-12-21 21:51:31 -08:00
David Berrios
d1c654359d Remove JVM arguments for OSX when running examples 2018-12-21 21:51:13 -08:00
Toni Helenius
8ed4c222df The mouse pos should be initialized always 2018-12-21 21:49:03 -08:00
Toni Helenius
54a98f13e5 Get initial mouse pos on init, pass it to the InputManager 2018-12-21 21:48:45 -08:00
Toni Helenius
5520863078 Set as finals 2018-12-21 21:48:31 -08:00
Nebloksiam
0f66b814b3 Load animated cursor NPE
Potential NPE when loading animated cursors (.ani)
2018-12-21 21:48:10 -08:00
Stephen Gold
f71aad128a tests and fixes for issues #918 and #919 2018-12-21 21:47:40 -08:00
Stephen Gold
1c5373876e resolve issue #916 2018-12-21 21:47:23 -08:00
Stephen Gold
6d19657aa2 fix for issue #913 2018-12-21 21:46:40 -08:00
Stephen Gold
8e454a6536 fix for issue #908 2018-12-21 21:46:22 -08:00
Stephen Gold
d57434be7a jme3-bullet: add and improve comments, mostly JavaDoc 2018-12-21 21:46:04 -08:00
Stephen Gold
5bbc6bcf1e fix for issue #740 (#906) 2018-12-21 21:42:18 -08:00
Stephen Gold
7e17cdc498 jme3-bullet: add and improve comments, mostly JavaDoc 2018-12-21 21:41:19 -08:00
Stephen Gold
e42ff35119 fix for issue #897 2018-12-21 21:01:55 -08:00
Stephen Gold
0553e9d9a2 fix for issue #898 2018-12-21 21:01:24 -08:00
Stephen Gold
2bb20c9537 fix for issue #886 2018-12-21 21:01:07 -08:00
Stephen Gold
7f14ad18c7 test case and fix for issue #883 2018-12-21 20:57:43 -08:00
Stephen Gold
1916a6a177 test case and fix for issue #889 2018-12-21 20:57:21 -08:00
Stephen Gold
b21619bd66 rm auto-generated C++ headers from repo, rm unzipped files during clean 2018-12-21 20:44:21 -08:00
Stephen Gold
3b43907301 use Gradle v4.10, android tools v3.1.4, bintray plugin v1.8.4 2018-12-21 20:33:32 -08:00
Stephen Gold
f338e7347c add a test for JME issue #877 2018-12-21 20:22:18 -08:00
Riccardo Balbo
45e7b4c6ed Fix bullet skipping enqueued tasks - #867 2018-12-21 20:21:50 -08:00
Stephen Gold
f3351256cb correct a typographical error in JavaDoc 2018-12-21 20:21:36 -08:00
Toni Helenius
1fbfc7d465 Feature 871 (#873)
* Update LWJGL to 3.1.6

* Change LinkedLists to ArrayDeques

* Call glfwTerminate & set NULL error callback on destroy

fixes crash when context is re-created
2018-12-21 20:17:55 -08:00
Kirill Vainer
c5921d8242 build javadoc by default 2018-12-21 20:17:32 -08:00
joliver82
f1d5032f7a Update GLImageFormats.java 2018-12-21 20:15:16 -08:00
Nehon
26644c89f5 Uses a HashSet for variable names in ShaderNodeLoaderDelegate instead of a String 2018-12-21 20:14:50 -08:00
oualid
bbe8f01f0f replace addState() with attach() in the javadoc 2018-12-21 20:14:02 -08:00
b00nation
6d5758c914 Update MaterialDebugAppState.java
I was debugging my application to dig down the issue why the shaders are recognized of change but not actually reloaded. I came to this solution.
2018-12-21 20:13:38 -08:00
Christopher
9738fc0525 Updated deprecation documentation 2018-12-21 20:13:12 -08:00
grizeldi
1c8a8f2355 Fix a typo which made pbr shader fail to compile 2018-12-21 20:12:48 -08:00
Rémy Bouquet
e7845e37ea Fixes link to original paper in shadow renderer 2018-12-21 20:12:19 -08:00
Paul Speed
72eac2c738 Fixed an NPE in getNumElements() if the data field was null. 2018-12-21 20:11:29 -08:00
Stephen Gold
c09014dd1d correct 2 more typographical errors in comments 2018-12-21 20:09:52 -08:00
Stephen Gold
52bbb7ad8a follow JME's conventional approach to cloning a SpatialTrack 2018-12-21 20:09:03 -08:00
Stephen Gold
4b68a4c9dc implement JmeCloneable to simplify BoneTrack cloning, set a good example 2018-12-21 20:08:41 -08:00
Stephen Gold
8a3d628263 implement the JmeCloneable interface for CompactArray 2018-12-21 20:06:50 -08:00
Stephen Gold
8fab216fd3 make TerrainTestCollision more user-friendly 2018-12-21 20:02:07 -08:00
javasabr
e6f8b368a0 refactored and upgraed lwjgl3 module. 2018-12-21 13:09:27 -08:00
Stephen Gold
e6b23342fb correct more grammar/spelling errors in comments 2018-12-21 13:09:09 -08:00
Stephen Gold
4f664f33cc correct more grammar/spelling errors in comments 2018-12-21 13:08:45 -08:00
Stephen Gold
5a1a5771ec correct more typographical errors in comments 2018-12-21 13:08:24 -08:00
Stephen Gold
f533e5003d address issue #825: SpatialTrack.clone() sets the trackSpatial to null 2018-12-21 13:06:09 -08:00
Stephen Gold
3122e8044d correct spelling errors in comments 2018-12-21 13:05:52 -08:00
Ali-RS
a17f0ad73b Fix an issue with Skeleton deserializing
Fix issue #371
2018-12-21 13:04:27 -08:00
Stephen Gold
ba37746c44 address issue #816: BoneTrack.setKeyframes() throws NPE in assertions 2018-12-21 13:02:21 -08:00
Stephen Gold
66e602c825 correct more typographical errors in comments 2018-12-21 13:02:04 -08:00
Stephen Gold
5dc585f5c4 correct more typographical errors in comments 2018-12-21 13:01:46 -08:00
Stephen Gold
e38d70e7be correct typographical errors in comments 2018-12-21 13:01:26 -08:00
Stephen Gold
e11c5da483 correct typographic errors in comments 2018-12-21 13:01:09 -08:00
Nehon
69ca84d377 Properly cleanup the DetailedProfilerState when it's detached 2018-12-21 12:59:04 -08:00
Stephen Gold
ee58677ed9 resolve deprecation warnings in jme3-niftygui 2018-12-21 12:49:46 -08:00
mitm001
b2606d396e Added link to the wiki readme. 2018-12-21 12:49:18 -08:00
Stephen Gold
8b70b64505 comment corrections: mostly spelling and grammar 2018-12-21 12:47:12 -08:00
Stephen Gold
36e09ee456 comment corrections in jme3-vr: mostly spelling and grammar 2018-12-21 12:44:45 -08:00
Stephen Gold
739831142e more comment corrections in jme3-core: mostly spelling and grammar 2018-12-21 12:43:14 -08:00
Stephen Gold
81ba0d7249 comment corrections in jme3-core: mostly spelling and grammar 2018-12-21 12:41:40 -08:00
Yan
66a46920b9 Fix typo in logger
Fix typo in logger.
Change "WeakRefAssetCache" to "WeakRefCloneAssetCache"
2018-12-21 12:35:52 -08:00
Stephen Gold
0090e3e279 copy YML from master in the hope of restarting CI 2018-12-20 11:22:20 -08:00
Stephen Gold
5618b52c24 trivial change to test continuous integration 2018-12-20 10:37:50 -08:00
Nehon
631794f7d6 Fixes mat param override reading null integenr params as 0 2018-05-19 00:22:47 +02:00
Nehon
f85624a20a Allows build for 3.2.x 2018-01-21 10:34:31 +01:00
Yan
01d0725a78 [taken]Fix issue #764
Fix infinity loop in EmitterSphereShape. issue #764

I test on both method:

    public void getRandomPoint1(Vector3f store) {
        float l = FastMath.pow(FastMath.nextRandomFloat(), 1f / 3f);
        float u = FastMath.nextRandomFloat() * 2f - 1f;
        float o = FastMath.nextRandomFloat() * FastMath.TWO_PI;

        store.z = l * u;
        u = 1f / FastMath.fastInvSqrt(1f - u * u);
        store.x = l * u * FastMath.cos(o);
        store.y = l * u * FastMath.sin(o);
        store.multLocal(radius);
        store.addLocal(center);
    }

    public void getRandomPoint2(Vector3f store) {
        do {
            store.x = (FastMath.nextRandomFloat() * 2f - 1f);
            store.y = (FastMath.nextRandomFloat() * 2f - 1f);
            store.z = (FastMath.nextRandomFloat() * 2f - 1f);
        } while (store.lengthSquared() > 1);
        store.multLocal(radius);
        store.addLocal(center);
    }
    // Test
    public void testGetRandomPoint() {
        int n = 1000000;
        long start = System.nanoTime();
        for (int i = 0; i < n; i++) {
            getRandomPoint1(store);
        }
        long time1 = System.nanoTime() - start;

        start = System.nanoTime();
        for (int i = 0; i < n; i++) {
            getRandomPoint2(store);
        }
        long time2 = System.nanoTime() - start;

        System.out.println("t1:" + time1);
        System.out.println("t2:" + time2);
        System.out.println("t1/t2:" + (float) time1 / time2);
    }

Result:

    t1:352272158
    t2:94436324
    t1/t2:3.7302613

Method2 seems nearly 4 times faster than method1.
2018-01-21 09:58:32 +01:00
Yan
5a471f7ef7 [taken]Fix issue #783
Fix issue #783
2018-01-21 09:57:56 +01:00
demoth
8ef1f2ef3b Fix #694 Reduce the logging level for OpenCLObjectManager 2018-01-21 09:57:24 +01:00
MeFisto94
5aef90da47 Fix Shadow Filters not having a default constructor and hence not being deserializable. 2018-01-21 09:57:06 +01:00
Domenic Cassisi
d36bbcf26c Adds missing key code for Print Screen (#682) (#806)
* Adds missing key code for Print Screen and update javadoc (#682)
2018-01-21 09:56:47 +01:00
ThoCed
b2717e19ef Ogre importer ignores receive_shadows issue #647 2018-01-21 09:53:37 +01:00
Stephen Gold
8f1ee0ec9a initialize InputManager.cursorPos to fix issue #792 for LWJGL2 2018-01-21 09:53:06 +01:00
Ali-RS
e87eeb20a5 Fix javadoc for Quaternion.toAngles() method (#802)
* Fix javadoc for Quaternion toAngles and fromAngles

JME treats Z as the main direction or look direction so x is pitch, y is yaw, and z is roll,
2018-01-21 09:52:43 +01:00
Domenic
d72e5ea39f Fixed typo in assert described in issue #538 2018-01-21 09:52:12 +01:00
Stephen Gold
ad2cb1a469 correct javadoc typo in AppSettings.java 2018-01-21 09:51:27 +01:00
Nehon
d0ae1a69a8 Fixes issues in the gltf loader when there are several skins 2018-01-07 15:35:17 +01:00
Nehon
95d33e6c4b Allows build of 3.2 branch 2018-01-05 19:59:29 +01:00
636 changed files with 12961 additions and 7922 deletions

96
.gitignore vendored
View File

@ -1,47 +1,49 @@
**/nbproject/private/
**/.classpath
**/.settings
**/.project
**/out
/.gradle/
/.nb-gradle/
/.idea/
/dist/
/build/
/bin/
/netbeans/
/.classpath
/.project
/.settings
*.dll
*.so
*.jnilib
*.dylib
*.iml
.gradletasknamecache
.DS_Store
/jme3-core/src/main/resources/com/jme3/system/version.properties
/jme3-*/build/
/jme3-bullet-native/bullet.zip
/jme3-bullet-native/bullet3.zip
/jme3-bullet-native/bullet-2.82-r2704/
/jme3-bullet-native/bullet3-2.83.7/
/jme3-android-native/openal-soft/
/jme3-android-native/OpenALSoft.zip
/jme3-android-native/src/native/jme_decode/STBI/
/jme3-android-native/src/native/jme_decode/Tremor/
/jme3-android-native/src/native/jme_decode/com_jme3_audio_plugins_NativeVorbisFile.h
/jme3-android-native/src/native/jme_decode/com_jme3_texture_plugins_AndroidNativeImageLoader.h
/jme3-android-native/stb_image.h
!/jme3-bullet-native/libs/native/windows/x86_64/bulletjme.dll
!/jme3-bullet-native/libs/native/windows/x86/bulletjme.dll
!/jme3-bullet-native/libs/native/osx/x86/libbulletjme.dylib
!/jme3-bullet-native/libs/native/osx/x86_64/libbulletjme.dylib
!/jme3-bullet-native/libs/native/linux/x86/libbulletjme.so
!/jme3-bullet-native/libs/native/linux/x86_64/libbulletjme.so
!/jme3-vr/src/main/resources/**/*.dylib
!/jme3-vr/src/main/resources/**/*.so
!/jme3-vr/src/main/resources/**/*.so.dbg
!/jme3-vr/src/main/resources/**/*.dll
!/jme3-vr/src/main/resources/**/*.pdb
/buildMaven.bat
**/nbproject/private/
**/.classpath
**/.settings
**/.project
**/.vscode
**/out/
/.gradle/
/.nb-gradle/
/.idea/
/dist/
/build/
/bin/
/netbeans/
/.classpath
/.project
/.settings
*.dll
*.so
*.jnilib
*.dylib
*.iml
.gradletasknamecache
.DS_Store
/jme3-core/src/main/resources/com/jme3/system/version.properties
/jme3-*/build/
/jme3-*/bin/
/jme3-bullet-native/bullet3.zip
/jme3-bullet-native/bullet3-*/
/jme3-bullet-native/src/native/cpp/com_jme3_bullet_*.h
/jme3-android-native/openal-soft/
/jme3-android-native/OpenALSoft.zip
/jme3-android-native/src/native/jme_decode/STBI/
/jme3-android-native/src/native/jme_decode/Tremor/
/jme3-android-native/src/native/jme_decode/com_jme3_audio_plugins_NativeVorbisFile.h
/jme3-android-native/src/native/jme_decode/com_jme3_texture_plugins_AndroidNativeImageLoader.h
/jme3-android-native/stb_image.h
!/jme3-bullet-native/libs/native/windows/x86_64/bulletjme.dll
!/jme3-bullet-native/libs/native/windows/x86/bulletjme.dll
!/jme3-bullet-native/libs/native/osx/x86/libbulletjme.dylib
!/jme3-bullet-native/libs/native/osx/x86_64/libbulletjme.dylib
!/jme3-bullet-native/libs/native/linux/x86/libbulletjme.so
!/jme3-bullet-native/libs/native/linux/x86_64/libbulletjme.so
/jme3-examples/private/
!/jme3-vr/src/main/resources/**/*.dylib
!/jme3-vr/src/main/resources/**/*.so
!/jme3-vr/src/main/resources/**/*.so.dbg
!/jme3-vr/src/main/resources/**/*.dll
!/jme3-vr/src/main/resources/**/*.pdb
/buildMaven.bat

View File

@ -1,11 +1,11 @@
language: java
sudo: false
dist: precise
sudo: true
branches:
only:
- master
- v3.1
- v3.2
- /^v3.2.*$/
matrix:
include:
@ -14,7 +14,9 @@ matrix:
env: UPLOAD=true UPLOAD_NATIVE=true
- os: linux
jdk: openjdk7
dist: precise
- os: osx
osx_image: xcode9.3
env: UPLOAD_NATIVE=true
addons:

View File

@ -55,5 +55,5 @@ We generally abide by the standard Java Code Conventions. Besides that, just mak
## Documentation
- How to edit the wiki - WIP
- How to edit the [wiki](https://github.com/jMonkeyEngine/wiki).
- How to edit JavaDocs - WIP

View File

@ -3,10 +3,13 @@ version: 1.0.{build}.{branch}
branches:
only:
- master
- v3.2
only_commits:
files:
- jme3-bullet-native/
- appveyor.yml
- gradle.properties
skip_tags: true
@ -34,13 +37,15 @@ build_script:
cache:
- C:\Users\appveyor\.gradle\caches
- C:\Users\appveyor\.gradle\wrapper
- jme3-bullet-native\bullet3.zip
- jme3-bullet-native\bullet3.zip -> gradle.properties
test: off
deploy: off
on_success:
- cmd: >-
if not defined encrypted_f0a0b284e2e8_key appveyor exit
openssl aes-256-cbc -K %encrypted_f0a0b284e2e8_key% -iv %encrypted_f0a0b284e2e8_iv% -in private\key.enc -out c:\users\appveyor\.ssh\id_rsa -d
git config --global user.email "appveyor"

View File

@ -1,10 +1,11 @@
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.5'
classpath 'com.android.tools.build:gradle:3.1.4'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
}
}
@ -115,10 +116,6 @@ task mergedSource(type: Copy){
}
task wrapper(type: Wrapper, description: 'Creates and deploys the Gradle wrapper to the current directory.') {
gradleVersion = '4.1'
}
ext {
ndkCommandPath = ""
ndkExists = false

View File

@ -1,14 +1,14 @@
# Version number used for plugins, only 3 numbers (e.g. 3.1.3)
jmeVersion = 3.2.0
jmeVersion = 3.2.4
# Version used for application and settings folder, no spaces!
jmeMainVersion = 3.2
jmeMainVersion = 3.2.4
# Version addition pre-alpha-svn, Stable, Beta
jmeVersionTag = SNAPSHOT
jmeVersionTag = stable
# Increment this each time jmeVersionTag changes but jmeVersion stays the same
jmeVersionTagID = 0
# specify if JavaDoc should be built
buildJavaDoc = false
buildJavaDoc = true
# specify if SDK and Native libraries get built
buildNativeProjects = false
@ -16,11 +16,11 @@ buildAndroidExamples = false
# Path to android NDK for building native libraries
#ndkPath=/Users/normenhansen/Documents/Code-Import/android-ndk-r7
ndkPath = /opt/android-ndk-r10c
ndkPath = /opt/android-ndk-r16b
# Path for downloading native Bullet
bulletUrl = https://github.com/bulletphysics/bullet3/archive/2.86.1.zip
bulletFolder = bullet3-2.86.1
bulletUrl = https://github.com/bulletphysics/bullet3/archive/2.87.zip
bulletFolder = bullet3-2.87
bulletZipFile = bullet3.zip
# POM settings

Binary file not shown.

View File

@ -1,6 +1,5 @@
#Sun Sep 17 22:55:30 EDT 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-bin.zip

6
gradlew vendored
View File

@ -33,11 +33,11 @@ DEFAULT_JVM_OPTS=""
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn ( ) {
warn () {
echo "$*"
}
die ( ) {
die () {
echo
echo "$*"
echo
@ -155,7 +155,7 @@ if $cygwin ; then
fi
# Escape application args
save ( ) {
save () {
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
echo " "
}

View File

@ -1,15 +1,9 @@
package jme3test.android;
import com.jme3.app.SimpleApplication;
import com.jme3.light.AmbientLight;
import com.jme3.light.PointLight;
import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import com.jme3.math.Vector3f;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Box;
import com.jme3.scene.shape.Sphere;
import com.jme3.util.TangentBinormalGenerator;
/**
* Test case to look for images stored in the Android drawable and mipmap directories. Image files are

View File

@ -1,16 +1,12 @@
package org.jmonkeyengine.jme3androidexamples;
import android.os.Bundle;
import android.util.Log;
import com.jme3.app.AndroidHarnessFragment;
import java.util.logging.Level;
import java.util.logging.LogManager;
import static org.jmonkeyengine.jme3androidexamples.MainActivity.*;
/**
* A placeholder fragment containing a the jME GLSurfaceView.
* A placeholder fragment containing a jME GLSurfaceView.
*/
public class JmeFragment extends AndroidHarnessFragment {

View File

@ -1,6 +1,5 @@
package org.jmonkeyengine.jme3androidexamples;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.os.Bundle;
@ -214,7 +213,7 @@ public class MainActivity extends AppCompatActivity implements OnItemClickListen
/**
* User clicked a view on the screen. Check for the OK and Cancel buttons
* and either start the applicaiton or exit.
* and either start the application or exit.
* @param view
*/
public void onClick(View view) {

View File

@ -1,9 +1,8 @@
package org.jmonkeyengine.jme3androidexamples;
import android.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;

View File

@ -3,7 +3,6 @@ package com.jme3.app;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.pm.ActivityInfo;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.NinePatchDrawable;
import android.opengl.GLSurfaceView;

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2015 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -125,7 +125,7 @@ public class AndroidHarnessFragment extends Fragment implements
/**
* Set the maximum resolution for the surfaceview in either the
* width or height screen direction depending on the screen size.
* If the surfaceview is retangular, the longest side (width or height)
* If the surfaceview is rectangular, the longest side (width or height)
* will have the resolution set to a maximum of maxResolutionDimension.
* The other direction will be set to a value that maintains the aspect
* ratio of the surfaceview. </br>
@ -276,17 +276,17 @@ public class AndroidHarnessFragment extends Fragment implements
}
/**
* Called by the system to create the View hierchy associated with this
* Called by the system to create the View hierarchy associated with this
* Fragment. For jME, this is a FrameLayout that contains the GLSurfaceView
* and an overlaying SplashScreen Image (if used). The View that is returned
* will be placed on the screen within the boundries of the View borders defined
* will be placed on the screen within the boundaries of the View borders defined
* by the Activity's layout parameters for this Fragment. For jME, we also
* update the application reference to the new view.
*
* @param inflater
* @param container
* @param savedInstanceState
* @return
* @return the new view
*/
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -123,7 +123,6 @@ public class VideoRecorderAppState extends AbstractAppState {
* This constructor allows you to specify the output file of the video as well as the quality
* @param file the video file
* @param quality the quality of the jpegs in the video stream (0.0 smallest file - 1.0 largest file)
* @param framerate the frame rate of the resulting video, the application will be locked to this framerate
*/
public VideoRecorderAppState(File file, float quality) {
this.file = file;

View File

@ -6,7 +6,6 @@ import com.jme3.asset.*;
import com.jme3.system.android.JmeAndroidSystem;
import java.io.IOException;
import java.io.InputStream;
import java.util.logging.Level;
import java.util.logging.Logger;
public class AndroidLocator implements AssetLocator {

View File

@ -36,7 +36,6 @@ import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.ScaleGestureDetector;
import com.jme3.input.event.TouchEvent;
import java.util.logging.Level;
import java.util.logging.Logger;
/**

View File

@ -42,7 +42,6 @@ import android.view.View;
import com.jme3.input.JoyInput;
import com.jme3.input.TouchInput;
import com.jme3.system.AppSettings;
import java.util.logging.Level;
import java.util.logging.Logger;
/**

View File

@ -37,7 +37,6 @@ import android.view.InputDevice;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import java.util.logging.Level;
import java.util.logging.Logger;
/**

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -59,7 +59,7 @@ import java.util.logging.Logger;
/**
* AndroidSensorJoyInput converts the Android Sensor system into Joystick events.
* A single joystick is configured and includes data for all configured sensors
* as seperate axes of the joystick.
* as separate axes of the joystick.
*
* Each axis is named according to the static strings in SensorJoystickAxis.
* Refer to the strings defined in SensorJoystickAxis for a list of supported
@ -285,8 +285,8 @@ public class AndroidSensorJoyInput implements SensorEventListener {
}
/**
* Calculates the device orientation based off the data recieved from the
* Acceleration Sensor and Mangetic Field sensor
* Calculates the device orientation based off the data received from the
* Acceleration Sensor and Magnetic Field sensor
* Values are returned relative to the Earth.
*
* From the Android Doc

View File

@ -36,7 +36,6 @@ import android.view.MotionEvent;
import com.jme3.input.event.TouchEvent;
import com.jme3.math.Vector2f;
import java.util.HashMap;
import java.util.logging.Level;
import java.util.logging.Logger;
/**

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2015 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -38,7 +38,7 @@ import javax.microedition.khronos.egl.EGL10;
import javax.microedition.khronos.egl.EGL11;
/**
* Utility class used by the {@link OGLESShaderRenderer renderer} and sister
* Utility class used by the OGLESShaderRenderer and sister
* classes.
*
* @author Kirill Vainer

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -136,7 +136,7 @@ public class OGLESContext implements JmeContext, GLSurfaceView.Renderer, SoftTex
// stops at the setFormat call without a crash.
// We look at the user setting for alpha bits and set the surfaceview
// PixelFormat to either Opaque, Transparent, or Translucent.
// ConfigChooser will do it's best to honor the alpha requested by the user
// ConfigChooser will do its best to honor the alpha requested by the user
// For best rendering performance, use Opaque (alpha bits = 0).
int curAlphaBits = settings.getAlphaBits();
logger.log(Level.FINE, "curAlphaBits: {0}", curAlphaBits);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -69,7 +69,7 @@ public class BlenderKey extends ModelKey {
*/
protected String usedWorld;
/**
* User's default material that is set fo objects that have no material definition in blender. The default value is
* User's default material that is set for objects that have no material definition in blender. The default value is
* null. If the value is null the importer will use its own default material (gray color - like in blender).
*/
protected Material defaultMaterial;
@ -476,9 +476,9 @@ public class BlenderKey extends ModelKey {
}
/**
* This mehtod sets the name of the WORLD data block taht should be used during file loading. By default the name is
* This method sets the name of the WORLD data block that should be used during file loading. By default the name is
* not set. If no name is set or the given name does not occur in the file - the first WORLD data block will be used
* during loading (assumin any exists in the file).
* during loading (assuming any exists in the file).
* @param usedWorld
* the name of the WORLD block used during loading
*/
@ -487,7 +487,7 @@ public class BlenderKey extends ModelKey {
}
/**
* This mehtod returns the name of the WORLD data block taht should be used during file loading.
* This method returns the name of the WORLD data block that should be used during file loading.
* @return the name of the WORLD block used during loading
*/
public String getUsedWorld() {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -304,10 +304,7 @@ public class BlenderContext {
*
* @param oldMemoryAddress
* the address of the feature
* @param featureName
* the name of the feature
* @param structure
* the filled structure of the feature
* @param featureDataType
* @param feature
* the feature we want to store
*/
@ -330,7 +327,7 @@ public class BlenderContext {
* @param oldMemoryAddress
* the address of the feature
* @param loadedFeatureDataType
* the type of data we want to retreive it can be either filled
* the type of data we want to retrieve it can be either filled
* structure or already converted feature
* @return loaded feature or null if it was not yet loaded
*/
@ -497,7 +494,7 @@ public class BlenderContext {
}
/**
* This method retreives the structure at the top of the parent's stack but
* This method retrieves the structure at the top of the parent's stack but
* does not remove it.
*
* @return the structure from the top of the stack
@ -754,7 +751,7 @@ public class BlenderContext {
}
/**
* This enum defines what loaded data type user wants to retreive. It can be
* This enum defines what loaded data type user wants to retrieve. It can be
* either filled structure or already converted data.
*
* @author Marcin Roguski (Kaelthas)

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -220,7 +220,7 @@ public class BlenderLoader implements AssetLoader {
} catch (BlenderFileException e) {
throw new IOException(e.getLocalizedMessage(), e);
} catch (Exception e) {
throw new IOException("Unexpected importer exception occured: " + e.getLocalizedMessage(), e);
throw new IOException("Unexpected importer exception occurred: " + e.getLocalizedMessage(), e);
} finally {
this.clear(assetInfo);
}

View File

@ -48,8 +48,6 @@ public abstract class Constraint {
* the constraint's structure (bConstraint clss in blender 2.49).
* @param ownerOMA
* the old memory address of the constraint owner
* @param ownerType
* the type of the constraint owner
* @param influenceIpo
* the ipo curve of the influence factor
* @param blenderContext

View File

@ -153,7 +153,7 @@ public class ConstraintHelper extends AbstractBlenderHelper {
* the blender context
* @return constraint object for the required type
* @throws BlenderFileException
* thrown when problems with blender file occured
* thrown when problems with blender file occurred
*/
private Constraint createConstraint(String dataType, Structure constraintStructure, Long ownerOMA, Ipo influenceIpo, BlenderContext blenderContext) throws BlenderFileException {
if (dataType == null || "Mesh".equalsIgnoreCase(dataType) || "Camera".equalsIgnoreCase(dataType) || "Lamp".equalsIgnoreCase(dataType)) {
@ -197,7 +197,7 @@ public class ConstraintHelper extends AbstractBlenderHelper {
}
/**
* The method retreives the transform from a feature in a given space.
* The method retrieves the transform from a feature in a given space.
*
* @param oma
* the OMA of the feature (spatial or armature node)
@ -205,7 +205,7 @@ public class ConstraintHelper extends AbstractBlenderHelper {
* the feature's subtarget (bone in a case of armature's node)
* @param space
* the space the transform is evaluated to
* @return thensform of a feature in a given space
* @return the transform of a feature in a given space
*/
public Transform getTransform(Long oma, String subtargetName, Space space) {
Spatial feature = (Spatial) blenderContext.getLoadedFeature(oma, LoadedDataType.FEATURE);

View File

@ -237,7 +237,7 @@ public class SimulationNode {
}
}
// ... add virtual tracks if neccessary, for bones that were altered but had no tracks before ...
// ... add virtual tracks if necessary, for bones that were altered but had no tracks before ...
for (Long boneOMA : alteredOmas) {
BoneContext boneContext = blenderContext.getBoneContext(boneOMA);
int boneIndex = skeleton.getBoneIndex(boneContext.getBone());

View File

@ -37,7 +37,7 @@ import com.jme3.util.BufferUtils;
/**
* A temporal mesh for curves and surfaces. It works in similar way as TemporalMesh for meshes.
* It prepares all neccessary lines and faces and allows to apply modifiers just like in regular temporal mesh.
* It prepares all necessary lines and faces and allows to apply modifiers just like in regular temporal mesh.
*
* @author Marcin Roguski (Kaelthas)
*/
@ -210,7 +210,7 @@ public class CurvesTemporalMesh extends TemporalMesh {
}
/**
* The method computes the value of a point at the certain relational distance from its beggining.
* The method computes the value of a point at the certain relational distance from its beginning.
* @param alongRatio
* the relative distance along the curve; should be a value between 0 and 1 inclusive;
* if the value exceeds the boundaries it is truncated to them
@ -369,7 +369,7 @@ public class CurvesTemporalMesh extends TemporalMesh {
}
/**
* The method loads the bevel object that sould be applied to curve. It can either be another curve or a generated one
* The method loads the bevel object that should be applied to curve. It can either be another curve or a generated one
* based on the bevel generating parameters in blender.
* @param curveStructure
* the structure with the curve's data (the curve being loaded, NOT the bevel curve)
@ -707,7 +707,7 @@ public class CurvesTemporalMesh extends TemporalMesh {
/**
* the method applies scale for the given bevel points. The points table is
* being modified so expect ypur result there.
* being modified so expect your result there.
*
* @param points
* the bevel points
@ -726,7 +726,7 @@ public class CurvesTemporalMesh extends TemporalMesh {
/**
* A helper class that represents a single bezier line. It consists of Edge's and allows to
* get a subline of a lentgh of the line.
* get a subline of a length of the line.
*
* @author Marcin Roguski (Kaelthas)
*/
@ -776,7 +776,7 @@ public class CurvesTemporalMesh extends TemporalMesh {
}
if (cyclic) {
// if the first vertex is repeated at the end the distance will be = 0 so it won't affect the result, and if it is not repeated
// then it is neccessary to add the length between the last and the first vertex
// then it is necessary to add the length between the last and the first vertex
length += vertices[vertices.length - 1].distance(vertices[0]);
}
}
@ -834,7 +834,7 @@ public class CurvesTemporalMesh extends TemporalMesh {
}
/**
* The method computes the value of a point at the certain relational distance from its beggining.
* The method computes the value of a point at the certain relational distance from its beginning.
* @param alongRatio
* the relative distance along the curve; should be a value between 0 and 1 inclusive;
* if the value exceeds the boundaries it is truncated to them

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -49,7 +49,7 @@ public class BlenderFileException extends Exception {
/**
* Constructor. Creates an exception containing the given message.
* @param message
* the message describing the problem that occured
* the message describing the problem that occurred
*/
public BlenderFileException(String message) {
super(message);
@ -58,7 +58,7 @@ public class BlenderFileException extends Exception {
/**
* Constructor. Creates an exception that is based upon other thrown object. It contains the whole stacktrace then.
* @param throwable
* an exception/error that occured
* an exception/error that occurred
*/
public BlenderFileException(Throwable throwable) {
super(throwable);
@ -67,9 +67,9 @@ public class BlenderFileException extends Exception {
/**
* Constructor. Creates an exception with both a message and stacktrace.
* @param message
* the message describing the problem that occured
* the message describing the problem that occurred
* @param throwable
* an exception/error that occured
* an exception/error that occurred
*/
public BlenderFileException(String message, Throwable throwable) {
super(message, throwable);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -93,7 +93,7 @@ public class BlenderInputStream extends InputStream {
try {
this.readStreamToCache(bufferedInputStream);
} catch (IOException e) {
throw new BlenderFileException("Problems occured while caching the file!", e);
throw new BlenderFileException("Problems occurred while caching the file!", e);
} finally {
try {
inputStream.close();
@ -144,7 +144,7 @@ public class BlenderInputStream extends InputStream {
gis = new GZIPInputStream(new ByteArrayInputStream(cachedBuffer));
this.readStreamToCache(gis);
} catch (IOException e) {
throw new IllegalStateException("IO errors occured where they should NOT! " + "The data is already buffered at this point!", e);
throw new IllegalStateException("IO errors occurred where they should NOT! " + "The data is already buffered at this point!", e);
} finally {
try {
if (gis != null) {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -85,7 +85,7 @@ public class DnaBlockData {
names[i] = inputStream.readString();
}
// reding types
// reading types
inputStream.alignPosition(4);
identifier = inputStream.readByte() << 24 | inputStream.readByte() << 16 | inputStream.readByte() << 8 | inputStream.readByte();
if (identifier != TYPE_ID) {
@ -181,7 +181,7 @@ public class DnaBlockData {
/**
* This method converts the given identifier code to string.
* @param code
* the code taht is to be converted
* the code that is to be converted
* @return the string value of the identifier
*/
private String toString(int code) {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -32,7 +32,7 @@
package com.jme3.scene.plugins.blender.file;
/**
* An array that can be dynamically modified/
* An array that can be dynamically modified
* @author Marcin Roguski
* @param <T>
* the type of stored data in the array
@ -42,7 +42,7 @@ public class DynamicArray<T> implements Cloneable {
/** An array object that holds the required data. */
private T[] array;
/**
* This table holds the sizes of dimetions of the dynamic table. It's length specifies the table dimension or a
* This table holds the sizes of dimensions of the dynamic table. Its length specifies the table dimension or a
* pointer level. For example: if tableSizes.length == 3 then it either specifies a dynamic table of fixed lengths:
* dynTable[a][b][c], where a,b,c are stored in the tableSizes table.
*/

View File

@ -27,7 +27,7 @@ class Field implements Cloneable {
/** This variable indicates the level of the pointer. */
public int pointerLevel;
/**
* This variable determines the sizes of the array. If the value is null the n the field is not an array.
* This variable determines the sizes of the array. If the value is null then the field is not an array.
*/
public int[] tableSizes;
/** This variable indicates if the field is a function pointer. */
@ -52,7 +52,7 @@ class Field implements Cloneable {
/**
* Copy constructor. Used in clone method. Copying is not full. The value in the new object is not set so that we
* have a clead empty copy of the filed to fill with data.
* have a clean empty copy of the field to fill with data.
* @param field
* the object that we copy
*/
@ -73,7 +73,7 @@ class Field implements Cloneable {
}
/**
* This method fills the field wth data read from the input stream.
* This method fills the field with data read from the input stream.
* @param blenderInputStream
* the stream we read data from
* @throws BlenderFileException
@ -264,9 +264,9 @@ class Field implements Cloneable {
}
/**
* This method removes all whitespaces from the text.
* This method removes all whitespace from the text.
* @param text
* the text we remove whitespaces from
* the text we remove whitespace from
*/
private void removeWhitespaces(StringBuilder text) {
for (int i = 0; i < text.length(); ++i) {
@ -306,7 +306,7 @@ class Field implements Cloneable {
StringBuilder result = new StringBuilder();
result.append(this.getFullName());
// insert appropriate amount of spaces to format the output corrently
// insert appropriate number of spaces to format the output corrently
int nameLength = result.length();
result.append(' ');// at least one space is a must
for (int i = 1; i < NAME_LENGTH - nameLength; ++i) {// we start from i=1 because one space is already added

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -169,7 +169,7 @@ public class Structure implements Cloneable {
}
/**
* This methos should be used on structures that are of a 'ListBase' type. It creates a List of structures that are
* This method should be used on structures that are of a 'ListBase' type. It creates a List of structures that are
* held by this structure within the blend file.
* @return a list of filled structures
* @throws BlenderFileException
@ -232,7 +232,7 @@ public class Structure implements Cloneable {
}
/**
* This method returns the address of the structure. The strucutre should be filled with data otherwise an exception
* This method returns the address of the structure. The structure should be filled with data otherwise an exception
* is thrown.
* @return the address of the feature stored in this structure
*/

View File

@ -102,12 +102,12 @@ public final class MaterialContext implements Savable {
long flag = ((Number)structure.getFieldValue("flag")).longValue();
if((flag & FLAG_TRANSPARENT) != 0) {
// veryfying if the transparency is present
// (in blender transparent mask is 0x10000 but its better to verify it because blender can indicate transparency when
// (in blender transparent mask is 0x10000 but it's better to verify it because blender can indicate transparency when
// it is not required
boolean transparent = false;
if (diffuseColor != null) {
transparent = diffuseColor.a < 1.0f;
if (loadedTextures.size() > 0) {// texutre covers the material color
if (loadedTextures.size() > 0) {// texture covers the material color
diffuseColor.set(1, 1, 1, 1);
}
}

View File

@ -186,11 +186,8 @@ public class Matrix extends SimpleMatrix {
}
/**
* Retreives the scale vector from the matrix and stores it into a given
* Retrieves the scale vector from the matrix and stores it into a given
* vector.
*
* @param the
* vector where the scale will be stored
*/
public Vector3d toScaleVector() {
Vector3d result = new Vector3d();
@ -199,11 +196,10 @@ public class Matrix extends SimpleMatrix {
}
/**
* Retreives the scale vector from the matrix and stores it into a given
* Retrieves the scale vector from the matrix and stores it into a given
* vector.
*
* @param the
* vector where the scale will be stored
* @param vector the vector where the scale will be stored
*/
public void toScaleVector(Vector3d vector) {
double scaleX = Math.sqrt(this.get(0, 0) * this.get(0, 0) + this.get(1, 0) * this.get(1, 0) + this.get(2, 0) * this.get(2, 0));

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -116,8 +116,8 @@ public final class Vector3d implements Savable, Cloneable, Serializable {
/**
* Constructor instantiates a new <code>Vector3d</code> that is a copy
* of the provided vector
* @param copy
* The Vector3d to copy
* @param vector3f
* The Vector3f to copy
*/
public Vector3d(Vector3f vector3f) {
this(vector3f.x, vector3f.y, vector3f.z);
@ -324,7 +324,7 @@ public final class Vector3d implements Savable, Cloneable, Serializable {
* the vector to take the cross product of with this.
* @param result
* the vector to store the cross product result.
* @return result, after recieving the cross product vector.
* @return result, after receiving the cross product vector.
*/
public Vector3d cross(Vector3d v, Vector3d result) {
return this.cross(v.x, v.y, v.z, result);
@ -342,7 +342,7 @@ public final class Vector3d implements Savable, Cloneable, Serializable {
* z component of the vector to take the cross product of with this.
* @param result
* the vector to store the cross product result.
* @return result, after recieving the cross product vector.
* @return result, after receiving the cross product vector.
*/
public Vector3d cross(double otherX, double otherY, double otherZ, Vector3d result) {
if (result == null) {
@ -485,12 +485,12 @@ public final class Vector3d implements Savable, Cloneable, Serializable {
}
/**
* <code>multLocal</code> multiplies a provided vector to this vector
* <code>multLocal</code> multiplies a provided vector by this vector
* internally, and returns a handle to this vector for easy chaining of
* calls. If the provided vector is null, null is returned.
*
* @param vec
* the vector to mult to this vector.
* the vector to multiply by this vector.
* @return this
*/
public Vector3d multLocal(Vector3d vec) {
@ -522,7 +522,7 @@ public final class Vector3d implements Savable, Cloneable, Serializable {
}
/**
* <code>multLocal</code> multiplies a provided vector to this vector
* <code>multLocal</code> multiplies a provided vector by this vector
* internally, and returns a handle to this vector for easy chaining of
* calls. If the provided vector is null, null is returned.
*
@ -539,7 +539,7 @@ public final class Vector3d implements Savable, Cloneable, Serializable {
}
/**
* <code>multLocal</code> multiplies a provided vector to this vector
* <code>multLocal</code> multiplies a provided vector by this vector
* internally, and returns a handle to this vector for easy chaining of
* calls. If the provided vector is null, null is returned.
*
@ -657,7 +657,7 @@ public final class Vector3d implements Savable, Cloneable, Serializable {
}
/**
* <code>subtractLocal</code> subtracts a provided vector to this vector
* <code>subtractLocal</code> subtracts a provided vector from this vector
* internally, and returns a handle to this vector for easy chaining of
* calls. If the provided vector is null, null is returned.
*
@ -825,7 +825,7 @@ public final class Vector3d implements Savable, Cloneable, Serializable {
/**
* <code>hashCode</code> returns a unique code for this vector object based
* on it's values. If two vectors are logically equivalent, they will return
* on its values. If two vectors are logically equivalent, they will return
* the same hash code value.
* @return the hash code value of this vector.
*/

View File

@ -306,7 +306,7 @@ public class Face implements Comparator<Integer> {
}
}
} catch (BlenderFileException e) {
LOGGER.log(Level.WARNING, "Errors occured during face triangulation: {0}. The face will be triangulated with the most direct algorithm, but the results might not be identical to blender.", e.getLocalizedMessage());
LOGGER.log(Level.WARNING, "Errors occurred during face triangulation: {0}. The face will be triangulated with the most direct algorithm, but the results might not be identical to blender.", e.getLocalizedMessage());
warning = TriangulationWarning.UNKNOWN;
}
if(warning != TriangulationWarning.NONE) {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -140,11 +140,11 @@ public class MeshHelper extends AbstractBlenderHelper {
}
/**
* This method returns the vertices.
* This method returns the vertices: a list of vertex positions and a list
* of vertex normals.
*
* @param meshStructure
* the structure containing the mesh data
* @return a list of two - element arrays, the first element is the vertex and the second - its normal
* @throws BlenderFileException
* this exception is thrown when the blend file structure is somehow invalid or corrupted
*/
@ -247,7 +247,7 @@ public class MeshHelper extends AbstractBlenderHelper {
}
}
} else {
// in this case UV's are assigned to faces (the array has the same legnth as the faces count)
// in this case UV's are assigned to faces (the array has the same length as the faces count)
Structure facesData = (Structure) meshStructure.getFieldValue("fdata");
Pointer pFacesDataLayers = (Pointer) facesData.getFieldValue("layers");
if (pFacesDataLayers.isNotNull()) {

View File

@ -198,8 +198,7 @@ public class TemporalMesh extends Geometry {
}
/**
* @param the
* edge of the mesh
* @param edge the edge of the mesh
* @return a list of faces that contain the given edge or an empty list
*/
public Collection<Face> getAdjacentFaces(Edge edge) {
@ -212,8 +211,7 @@ public class TemporalMesh extends Geometry {
}
/**
* @param the
* index of the mesh
* @param index the index of the mesh
* @return a list of edges that contain the index
*/
public Collection<Edge> getAdjacentEdges(Integer index) {
@ -223,8 +221,7 @@ public class TemporalMesh extends Geometry {
/**
* Tells if the given edge is a boundary edge. The boundary edge means that it belongs to a single
* face or to none.
* @param the
* edge of the mesh
* @param edge the edge of the mesh
* @return <b>true</b> if the edge is a boundary one and <b>false</b> otherwise
*/
public boolean isBoundary(Edge edge) {
@ -289,8 +286,9 @@ public class TemporalMesh extends Geometry {
/**
* The method rebuilds the mappings between faces and edges. Should be called after
* every major change of the temporal mesh done outside it.
* @note I will remove this method soon and make the mappings to be done automatically
* when the mesh is modified.
* <p>
* Note: I will remove this method soon and cause the mappings to be done
* automatically when the mesh is modified.
*/
public void rebuildIndexesMappings() {
indexToEdgeMapping.clear();

View File

@ -47,7 +47,7 @@ public class SubdivisionSurfaceModifier extends Modifier {
private Set<Integer> verticesOnOriginalEdges = new HashSet<Integer>();
/**
* Constructor loads all neccessary modifier data.
* Constructor loads all necessary modifier data.
* @param modifierStructure
* the modifier structure
* @param blenderContext
@ -193,7 +193,7 @@ public class SubdivisionSurfaceModifier extends Modifier {
// moving the vertex
v.addLocal(t);
// applying crease weight if neccessary
// applying crease weight if necessary
CreasePoint creasePoint = creasePoints.get(i);
if (creasePoint.getTarget() != null && creasePoint.getWeight() != 0) {
t = creasePoint.getTarget().subtractLocal(v).multLocal(creasePoint.getWeight());

View File

@ -206,7 +206,7 @@ public final class ImageUtils {
N.z = 1;
N.divideLocal(den);
// setting thge pixel in the result image
// setting the pixel in the result image
bumpMap.setRGB(x, y, ImageUtils.vectorToColor(N.x, N.y, N.z));
}
}
@ -422,7 +422,7 @@ public final class ImageUtils {
* pixel's X coordinate
* @param y
* pixel's Y coordinate
* @return height reprezented by the given texture in the specified location
* @return height represented by the given texture in the specified location
*/
private static int getHeight(BufferedImage image, int x, int y) {
if (x < 0) {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -315,7 +315,7 @@ public class TextureHelper extends AbstractBlenderHelper {
* @param pos
* the relative position (value of range <0, 1> (both inclusive))
* @param size
* the size of the line the pixel lies on (width, heigth or
* the size of the line the pixel lies on (width, height or
* depth)
* @return the integer index of the pixel on the line of the specified width
*/
@ -434,10 +434,10 @@ public class TextureHelper extends AbstractBlenderHelper {
}
/**
* This method loads the textre from outside the blend file using the
* This method loads the texture from outside the blend file using the
* AssetManager that the blend file was loaded with. It returns a texture
* with a full assetKey that references the original texture so it later
* doesn't need to ba packed when the model data is serialized. It searches
* doesn't need to be packed when the model data is serialized. It searches
* the AssetManager for the full path if the model file is a relative path
* and will attempt to truncate the path if it is an absolute file path
* until the path can be found in the AssetManager. If the texture can not

View File

@ -62,7 +62,7 @@ public class UserUVCollection {
* the name of the UV set
* @param vertexIndex
* the vertex index corresponds to the index in jme mesh and not the original one in blender
* @return
* @return a pre-existing coordinate vector
*/
public Vector2f getUVForVertex(String uvSetName, int vertexIndex) {
return uvsMap.get(uvSetName).get(vertexIndex);

View File

@ -143,7 +143,8 @@ public class TextureBlenderAWT extends AbstractTextureBlender {
dataArray.add(newData);
}
Image result = depth > 1 ? new Image(Format.RGBA8, width, height, depth, dataArray, ColorSpace.Linear) : new Image(Format.RGBA8, width, height, dataArray.get(0), ColorSpace.Linear);
ColorSpace colorSpace = baseImage.getColorSpace() != null ? baseImage.getColorSpace() : ColorSpace.Linear;
Image result = depth > 1 ? new Image(Format.RGBA8, width, height, depth, dataArray, colorSpace) : new Image(Format.RGBA8, width, height, dataArray.get(0), colorSpace);
if (image.getMipMapSizes() != null) {
result.setMipMapSizes(image.getMipMapSizes().clone());
}

View File

@ -104,7 +104,8 @@ task copyJmeAndroid(type: Copy) {
into outputDir
}
task buildBulletNativeLib(type: Exec, dependsOn: [copyJmeAndroid, copyJmeCpp, copyBullet]) {
//dependsOn ':jme3-bullet:generateNativeHeaders'
task buildBulletNativeLib(type: Exec, dependsOn: [copyJmeAndroid, ':jme3-bullet:generateNativeHeaders', copyJmeCpp, copyBullet]) {
// args 'TARGET_PLATFORM=android-9'
// println "buildBulletNativeLib ndkWorkingPath: " + ndkWorkingPath
// println "buildBulletNativeLib rootProject.ndkCommandPath: " + rootProject.ndkCommandPath

View File

@ -54,12 +54,23 @@ LOCAL_C_INCLUDES := $(BULLET_PATH)/\
$(BULLET_PATH)/vectormath/sse\
$(BULLET_PATH)/vectormath/neon
LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%)
#ARM mode more performant than thumb for old armeabi
ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI), armeabi))
LOCAL_ARM_MODE := arm
endif
#Enable neon for armv7
ifeq ($(TARGET_ARCH_ABI),$(filter $(TARGET_ARCH_ABI), armeabi-v7a))
LOCAL_ARM_NEON := true
endif
LOCAL_CFLAGS := $(LOCAL_C_INCLUDES:%=-I%)
LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -ldl -lm -llog
FILE_LIST := $(wildcard $(LOCAL_PATH)/*.cpp)
FILE_LIST += $(wildcard $(LOCAL_PATH)/**/*.cpp)
FILE_LIST += $(wildcard $(LOCAL_PATH)/**/**/*.cpp)
FILE_LIST := $(filter-out $(wildcard $(LOCAL_PATH)/Bullet3OpenCL/**/*.cpp), $(FILE_LIST))
LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)
include $(BUILD_SHARED_LIBRARY)
include $(BUILD_SHARED_LIBRARY)

View File

@ -1,4 +1,7 @@
APP_OPTIM := release
APP_ABI := all
#APP_ABI := armeabi-v7a
APP_STL := stlport_static
# gnustl_static or stlport_static
APP_MODULES := bulletjme
APP_CFLAGS += -funroll-loops -Ofast

View File

@ -11,6 +11,20 @@ if (!hasProperty('mainClass')) {
dependencies {
compile project(':jme3-bullet')
}
clean { dependsOn 'cleanHeaders', 'cleanUnzipped' }
// clean up auto-generated C++ headers
task cleanHeaders(type: Delete) {
delete fileTree(dir: 'src/native/cpp', include: 'com_jme3_bullet_*.h')
}
// clean up unzipped files
task cleanUnzipped(type: Delete) {
delete bulletFolder
}
// clean up the downloaded archive
task cleanZipFile(type: Delete) {
delete bulletZipFile
}
model {
components {
@ -27,13 +41,21 @@ model {
source {
srcDir 'src/native/cpp'
srcDir bulletSrcPath
exclude 'Bullet3Collision/**'
exclude 'Bullet3Dynamics/**'
exclude 'Bullet3Geometry/**'
exclude 'Bullet3OpenCL/**'
exclude 'Bullet3Serialize/**'
include '**/*.cpp'
}
exportedHeaders {
srcDir 'src/native/cpp'
srcDir bulletSrcPath
exclude 'Bullet3Collision/**'
exclude 'Bullet3Dynamics/**'
exclude 'Bullet3Geometry/**'
exclude 'Bullet3OpenCL/**'
exclude 'Bullet3Serialize/**'
include '**/*.h'
}
}
@ -77,6 +99,7 @@ model {
return
}
cppCompiler.define('BT_NO_PROFILE')
if (toolChain in VisualCpp) {
cppCompiler.args "/I$javaHome\\include"
} else{
@ -85,13 +108,13 @@ model {
if (os == "osx") {
cppCompiler.args '-I', "$javaHome/include/darwin"
cppCompiler.args "-Ofast"
cppCompiler.args "-O3"
cppCompiler.args "-U_FORTIFY_SOURCE"
} else if (os == "linux") {
cppCompiler.args "-fvisibility=hidden"
cppCompiler.args '-I', "$javaHome/include/linux"
cppCompiler.args "-fPIC"
cppCompiler.args "-Ofast"
cppCompiler.args "-O3"
cppCompiler.args "-U_FORTIFY_SOURCE"
cppCompiler.args "-fpermissive"
linker.args "-fvisibility=hidden"
@ -104,7 +127,7 @@ model {
}
cppCompiler.args "-fpermissive"
cppCompiler.args "-static"
cppCompiler.args "-Ofast"
cppCompiler.args "-O3"
cppCompiler.args "-U_FORTIFY_SOURCE"
linker.args "-static"
linker.args "-Wl,--exclude-all-symbols"
@ -115,7 +138,10 @@ model {
cppCompiler.define('WIN32')
}
tasks.all { dependsOn unzipBulletIfNeeded }
tasks.all {
dependsOn unzipBulletIfNeeded
dependsOn ':jme3-bullet:generateNativeHeaders'
}
// Add output to jar file
jar.into("native/${os}/${arch}") {
@ -199,7 +225,7 @@ unzipBulletIfNeeded.dependsOn {
}
}
// Helper class to wrap ant dowload task
// Helper class to wrap ant download task
class MyDownload extends DefaultTask {
@Input
String sourceUrl

View File

@ -1,187 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_PhysicsSpace */
#ifndef _Included_com_jme3_bullet_PhysicsSpace
#define _Included_com_jme3_bullet_PhysicsSpace
#ifdef __cplusplus
extern "C" {
#endif
#undef com_jme3_bullet_PhysicsSpace_AXIS_X
#define com_jme3_bullet_PhysicsSpace_AXIS_X 0L
#undef com_jme3_bullet_PhysicsSpace_AXIS_Y
#define com_jme3_bullet_PhysicsSpace_AXIS_Y 1L
#undef com_jme3_bullet_PhysicsSpace_AXIS_Z
#define com_jme3_bullet_PhysicsSpace_AXIS_Z 2L
/*
* Class: com_jme3_bullet_PhysicsSpace
* Method: createPhysicsSpace
* Signature: (FFFFFFIZ)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_PhysicsSpace_createPhysicsSpace
(JNIEnv *, jobject, jfloat, jfloat, jfloat, jfloat, jfloat, jfloat, jint, jboolean);
/*
* Class: com_jme3_bullet_PhysicsSpace
* Method: stepSimulation
* Signature: (JFIF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_PhysicsSpace_stepSimulation
(JNIEnv *, jobject, jlong, jfloat, jint, jfloat);
/*
* Class: com_jme3_bullet_PhysicsSpace
* Method: addCollisionObject
* Signature: (JJ)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_PhysicsSpace_addCollisionObject
(JNIEnv *, jobject, jlong, jlong);
/*
* Class: com_jme3_bullet_PhysicsSpace
* Method: removeCollisionObject
* Signature: (JJ)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_PhysicsSpace_removeCollisionObject
(JNIEnv *, jobject, jlong, jlong);
/*
* Class: com_jme3_bullet_PhysicsSpace
* Method: addRigidBody
* Signature: (JJ)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_PhysicsSpace_addRigidBody
(JNIEnv *, jobject, jlong, jlong);
/*
* Class: com_jme3_bullet_PhysicsSpace
* Method: removeRigidBody
* Signature: (JJ)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_PhysicsSpace_removeRigidBody
(JNIEnv *, jobject, jlong, jlong);
/*
* Class: com_jme3_bullet_PhysicsSpace
* Method: addCharacterObject
* Signature: (JJ)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_PhysicsSpace_addCharacterObject
(JNIEnv *, jobject, jlong, jlong);
/*
* Class: com_jme3_bullet_PhysicsSpace
* Method: removeCharacterObject
* Signature: (JJ)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_PhysicsSpace_removeCharacterObject
(JNIEnv *, jobject, jlong, jlong);
/*
* Class: com_jme3_bullet_PhysicsSpace
* Method: addAction
* Signature: (JJ)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_PhysicsSpace_addAction
(JNIEnv *, jobject, jlong, jlong);
/*
* Class: com_jme3_bullet_PhysicsSpace
* Method: removeAction
* Signature: (JJ)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_PhysicsSpace_removeAction
(JNIEnv *, jobject, jlong, jlong);
/*
* Class: com_jme3_bullet_PhysicsSpace
* Method: addVehicle
* Signature: (JJ)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_PhysicsSpace_addVehicle
(JNIEnv *, jobject, jlong, jlong);
/*
* Class: com_jme3_bullet_PhysicsSpace
* Method: removeVehicle
* Signature: (JJ)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_PhysicsSpace_removeVehicle
(JNIEnv *, jobject, jlong, jlong);
/*
* Class: com_jme3_bullet_PhysicsSpace
* Method: addConstraint
* Signature: (JJ)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_PhysicsSpace_addConstraint
(JNIEnv *, jobject, jlong, jlong);
/*
* Class: com_jme3_bullet_PhysicsSpace
* Method: addConstraintC
* Signature: (JJZ)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_PhysicsSpace_addConstraintC
(JNIEnv *, jobject, jlong, jlong, jboolean);
/*
* Class: com_jme3_bullet_PhysicsSpace
* Method: removeConstraint
* Signature: (JJ)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_PhysicsSpace_removeConstraint
(JNIEnv *, jobject, jlong, jlong);
/*
* Class: com_jme3_bullet_PhysicsSpace
* Method: setGravity
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_PhysicsSpace_setGravity
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_PhysicsSpace
* Method: rayTest_native
* Signature: (Lcom/jme3/math/Vector3f;Lcom/jme3/math/Vector3f;JLjava/util/List;I)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_PhysicsSpace_rayTest_1native
(JNIEnv *, jobject, jobject, jobject, jlong, jobject, jint);
/*
* Class: com_jme3_bullet_PhysicsSpace
* Method: sweepTest_native
* Signature: (JLcom/jme3/math/Transform;Lcom/jme3/math/Transform;JLjava/util/List;F)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_PhysicsSpace_sweepTest_1native
(JNIEnv *, jobject, jlong, jobject, jobject, jlong, jobject, jfloat);
/*
* Class: com_jme3_bullet_PhysicsSpace
* Method: setSolverNumIterations
* Signature: (JI)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_PhysicsSpace_setSolverNumIterations
(JNIEnv *, jobject, jlong, jint);
/*
* Class: com_jme3_bullet_PhysicsSpace
* Method: initNativePhysics
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_PhysicsSpace_initNativePhysics
(JNIEnv *, jclass);
/*
* Class: com_jme3_bullet_PhysicsSpace
* Method: finalizeNative
* Signature: (J)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_PhysicsSpace_finalizeNative
(JNIEnv *, jobject, jlong);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,13 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_PhysicsSpace_BroadphaseType */
#ifndef _Included_com_jme3_bullet_PhysicsSpace_BroadphaseType
#define _Included_com_jme3_bullet_PhysicsSpace_BroadphaseType
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,173 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_collision_PhysicsCollisionEvent */
#ifndef _Included_com_jme3_bullet_collision_PhysicsCollisionEvent
#define _Included_com_jme3_bullet_collision_PhysicsCollisionEvent
#ifdef __cplusplus
extern "C" {
#endif
#undef com_jme3_bullet_collision_PhysicsCollisionEvent_serialVersionUID
#define com_jme3_bullet_collision_PhysicsCollisionEvent_serialVersionUID 5516075349620653480LL
#undef com_jme3_bullet_collision_PhysicsCollisionEvent_TYPE_ADDED
#define com_jme3_bullet_collision_PhysicsCollisionEvent_TYPE_ADDED 0L
#undef com_jme3_bullet_collision_PhysicsCollisionEvent_TYPE_PROCESSED
#define com_jme3_bullet_collision_PhysicsCollisionEvent_TYPE_PROCESSED 1L
#undef com_jme3_bullet_collision_PhysicsCollisionEvent_TYPE_DESTROYED
#define com_jme3_bullet_collision_PhysicsCollisionEvent_TYPE_DESTROYED 2L
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionEvent
* Method: getAppliedImpulse
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionEvent_getAppliedImpulse
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionEvent
* Method: getAppliedImpulseLateral1
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionEvent_getAppliedImpulseLateral1
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionEvent
* Method: getAppliedImpulseLateral2
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionEvent_getAppliedImpulseLateral2
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionEvent
* Method: getCombinedFriction
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionEvent_getCombinedFriction
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionEvent
* Method: getCombinedRestitution
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionEvent_getCombinedRestitution
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionEvent
* Method: getDistance1
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionEvent_getDistance1
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionEvent
* Method: getIndex0
* Signature: (J)I
*/
JNIEXPORT jint JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionEvent_getIndex0
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionEvent
* Method: getIndex1
* Signature: (J)I
*/
JNIEXPORT jint JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionEvent_getIndex1
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionEvent
* Method: getLateralFrictionDir1
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionEvent_getLateralFrictionDir1
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionEvent
* Method: getLateralFrictionDir2
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionEvent_getLateralFrictionDir2
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionEvent
* Method: isLateralFrictionInitialized
* Signature: (J)Z
*/
JNIEXPORT jboolean JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionEvent_isLateralFrictionInitialized
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionEvent
* Method: getLifeTime
* Signature: (J)I
*/
JNIEXPORT jint JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionEvent_getLifeTime
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionEvent
* Method: getLocalPointA
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionEvent_getLocalPointA
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionEvent
* Method: getLocalPointB
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionEvent_getLocalPointB
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionEvent
* Method: getNormalWorldOnB
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionEvent_getNormalWorldOnB
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionEvent
* Method: getPartId0
* Signature: (J)I
*/
JNIEXPORT jint JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionEvent_getPartId0
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionEvent
* Method: getPartId1
* Signature: (J)I
*/
JNIEXPORT jint JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionEvent_getPartId1
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionEvent
* Method: getPositionWorldOnA
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionEvent_getPositionWorldOnA
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionEvent
* Method: getPositionWorldOnB
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionEvent_getPositionWorldOnB
(JNIEnv *, jobject, jlong, jobject);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,87 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_collision_PhysicsCollisionObject */
#ifndef _Included_com_jme3_bullet_collision_PhysicsCollisionObject
#define _Included_com_jme3_bullet_collision_PhysicsCollisionObject
#ifdef __cplusplus
extern "C" {
#endif
#undef com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_NONE
#define com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_NONE 0L
#undef com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_01
#define com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_01 1L
#undef com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_02
#define com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_02 2L
#undef com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_03
#define com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_03 4L
#undef com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_04
#define com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_04 8L
#undef com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_05
#define com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_05 16L
#undef com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_06
#define com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_06 32L
#undef com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_07
#define com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_07 64L
#undef com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_08
#define com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_08 128L
#undef com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_09
#define com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_09 256L
#undef com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_10
#define com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_10 512L
#undef com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_11
#define com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_11 1024L
#undef com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_12
#define com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_12 2048L
#undef com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_13
#define com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_13 4096L
#undef com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_14
#define com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_14 8192L
#undef com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_15
#define com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_15 16384L
#undef com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_16
#define com_jme3_bullet_collision_PhysicsCollisionObject_COLLISION_GROUP_16 32768L
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionObject
* Method: initUserPointer
* Signature: (JII)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionObject_initUserPointer
(JNIEnv *, jobject, jlong, jint, jint);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionObject
* Method: attachCollisionShape
* Signature: (JJ)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionObject_attachCollisionShape
(JNIEnv *, jobject, jlong, jlong);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionObject
* Method: setCollisionGroup
* Signature: (JI)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionObject_setCollisionGroup
(JNIEnv *, jobject, jlong, jint);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionObject
* Method: setCollideWithGroups
* Signature: (JI)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionObject_setCollideWithGroups
(JNIEnv *, jobject, jlong, jint);
/*
* Class: com_jme3_bullet_collision_PhysicsCollisionObject
* Method: finalizeNative
* Signature: (J)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_collision_PhysicsCollisionObject_finalizeNative
(JNIEnv *, jobject, jlong);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,21 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_collision_shapes_BoxCollisionShape */
#ifndef _Included_com_jme3_bullet_collision_shapes_BoxCollisionShape
#define _Included_com_jme3_bullet_collision_shapes_BoxCollisionShape
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_collision_shapes_BoxCollisionShape
* Method: createShape
* Signature: (Lcom/jme3/math/Vector3f;)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_collision_shapes_BoxCollisionShape_createShape
(JNIEnv *, jobject, jobject);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,21 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_collision_shapes_CapsuleCollisionShape */
#ifndef _Included_com_jme3_bullet_collision_shapes_CapsuleCollisionShape
#define _Included_com_jme3_bullet_collision_shapes_CapsuleCollisionShape
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_collision_shapes_CapsuleCollisionShape
* Method: createShape
* Signature: (IFF)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_collision_shapes_CapsuleCollisionShape_createShape
(JNIEnv *, jobject, jint, jfloat, jfloat);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,45 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_collision_shapes_CollisionShape */
#ifndef _Included_com_jme3_bullet_collision_shapes_CollisionShape
#define _Included_com_jme3_bullet_collision_shapes_CollisionShape
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_collision_shapes_CollisionShape
* Method: getMargin
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_collision_shapes_CollisionShape_getMargin
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_collision_shapes_CollisionShape
* Method: setLocalScaling
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_collision_shapes_CollisionShape_setLocalScaling
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_collision_shapes_CollisionShape
* Method: setMargin
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_collision_shapes_CollisionShape_setMargin
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_collision_shapes_CollisionShape
* Method: finalizeNative
* Signature: (J)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_collision_shapes_CollisionShape_finalizeNative
(JNIEnv *, jobject, jlong);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,37 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_collision_shapes_CompoundCollisionShape */
#ifndef _Included_com_jme3_bullet_collision_shapes_CompoundCollisionShape
#define _Included_com_jme3_bullet_collision_shapes_CompoundCollisionShape
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_collision_shapes_CompoundCollisionShape
* Method: createShape
* Signature: ()J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_collision_shapes_CompoundCollisionShape_createShape
(JNIEnv *, jobject);
/*
* Class: com_jme3_bullet_collision_shapes_CompoundCollisionShape
* Method: addChildShape
* Signature: (JJLcom/jme3/math/Vector3f;Lcom/jme3/math/Matrix3f;)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_collision_shapes_CompoundCollisionShape_addChildShape
(JNIEnv *, jobject, jlong, jlong, jobject, jobject);
/*
* Class: com_jme3_bullet_collision_shapes_CompoundCollisionShape
* Method: removeChildShape
* Signature: (JJ)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_collision_shapes_CompoundCollisionShape_removeChildShape
(JNIEnv *, jobject, jlong, jlong);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,21 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_collision_shapes_ConeCollisionShape */
#ifndef _Included_com_jme3_bullet_collision_shapes_ConeCollisionShape
#define _Included_com_jme3_bullet_collision_shapes_ConeCollisionShape
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_collision_shapes_ConeCollisionShape
* Method: createShape
* Signature: (IFF)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_collision_shapes_ConeCollisionShape_createShape
(JNIEnv *, jobject, jint, jfloat, jfloat);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,21 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_collision_shapes_CylinderCollisionShape */
#ifndef _Included_com_jme3_bullet_collision_shapes_CylinderCollisionShape
#define _Included_com_jme3_bullet_collision_shapes_CylinderCollisionShape
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_collision_shapes_CylinderCollisionShape
* Method: createShape
* Signature: (ILcom/jme3/math/Vector3f;)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_collision_shapes_CylinderCollisionShape_createShape
(JNIEnv *, jobject, jint, jobject);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -55,6 +55,18 @@ extern "C" {
return reinterpret_cast<jlong>(shape);
}
/*
* Class: com_jme3_bullet_collision_shapes_GImpactCollisionShape
* Method: recalcAabb
* Signature: (J)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_collision_shapes_GImpactCollisionShape_recalcAabb
(JNIEnv *env, jobject object, jlong shapeId) {
btGImpactMeshShape *pShape
= reinterpret_cast<btGImpactMeshShape *> (shapeId);
pShape->updateBound();
}
/*
* Class: com_jme3_bullet_collision_shapes_GImpactCollisionShape
* Method: finalizeNative
@ -65,7 +77,7 @@ extern "C" {
btTriangleIndexVertexArray* array = reinterpret_cast<btTriangleIndexVertexArray*> (meshId);
delete(array);
}
#ifdef __cplusplus
}
#endif

View File

@ -1,29 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_collision_shapes_GImpactCollisionShape */
#ifndef _Included_com_jme3_bullet_collision_shapes_GImpactCollisionShape
#define _Included_com_jme3_bullet_collision_shapes_GImpactCollisionShape
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_collision_shapes_GImpactCollisionShape
* Method: createShape
* Signature: (J)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_collision_shapes_GImpactCollisionShape_createShape
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_collision_shapes_GImpactCollisionShape
* Method: finalizeNative
* Signature: (J)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_collision_shapes_GImpactCollisionShape_finalizeNative
(JNIEnv *, jobject, jlong);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,21 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_collision_shapes_HeightfieldCollisionShape */
#ifndef _Included_com_jme3_bullet_collision_shapes_HeightfieldCollisionShape
#define _Included_com_jme3_bullet_collision_shapes_HeightfieldCollisionShape
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_collision_shapes_HeightfieldCollisionShape
* Method: createShape
* Signature: (IILjava/nio/ByteBuffer;FFFIZ)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_collision_shapes_HeightfieldCollisionShape_createShape
(JNIEnv *, jobject, jint, jint, jobject, jfloat, jfloat, jfloat, jint, jboolean);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -60,6 +60,8 @@ extern "C" {
shape->addPoint(vect);
}
shape->optimizeConvexHull();
return reinterpret_cast<jlong>(shape);
}

View File

@ -1,21 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_collision_shapes_HullCollisionShape */
#ifndef _Included_com_jme3_bullet_collision_shapes_HullCollisionShape
#define _Included_com_jme3_bullet_collision_shapes_HullCollisionShape
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_collision_shapes_HullCollisionShape
* Method: createShape
* Signature: (Ljava/nio/ByteBuffer;)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_collision_shapes_HullCollisionShape_createShape
(JNIEnv *, jobject, jobject);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,45 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_collision_shapes_MeshCollisionShape */
#ifndef _Included_com_jme3_bullet_collision_shapes_MeshCollisionShape
#define _Included_com_jme3_bullet_collision_shapes_MeshCollisionShape
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_collision_shapes_MeshCollisionShape
* Method: setBVH
* Signature: ([BJ)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_collision_shapes_MeshCollisionShape_setBVH
(JNIEnv *, jobject, jbyteArray, jlong);
/*
* Class: com_jme3_bullet_collision_shapes_MeshCollisionShape
* Method: saveBVH
* Signature: (J)[B
*/
JNIEXPORT jbyteArray JNICALL Java_com_jme3_bullet_collision_shapes_MeshCollisionShape_saveBVH
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_collision_shapes_MeshCollisionShape
* Method: createShape
* Signature: (ZZJ)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_collision_shapes_MeshCollisionShape_createShape
(JNIEnv *, jobject, jboolean, jboolean, jlong);
/*
* Class: com_jme3_bullet_collision_shapes_MeshCollisionShape
* Method: finalizeNative
* Signature: (JJ)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_collision_shapes_MeshCollisionShape_finalizeNative
(JNIEnv *, jobject, jlong, jlong);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,21 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_collision_shapes_PlaneCollisionShape */
#ifndef _Included_com_jme3_bullet_collision_shapes_PlaneCollisionShape
#define _Included_com_jme3_bullet_collision_shapes_PlaneCollisionShape
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_collision_shapes_PlaneCollisionShape
* Method: createShape
* Signature: (Lcom/jme3/math/Vector3f;F)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_collision_shapes_PlaneCollisionShape_createShape
(JNIEnv *, jobject, jobject, jfloat);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,45 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_collision_shapes_SimplexCollisionShape */
#ifndef _Included_com_jme3_bullet_collision_shapes_SimplexCollisionShape
#define _Included_com_jme3_bullet_collision_shapes_SimplexCollisionShape
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_collision_shapes_SimplexCollisionShape
* Method: createShape
* Signature: (Lcom/jme3/math/Vector3f;)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_collision_shapes_SimplexCollisionShape_createShape__Lcom_jme3_math_Vector3f_2
(JNIEnv *, jobject, jobject);
/*
* Class: com_jme3_bullet_collision_shapes_SimplexCollisionShape
* Method: createShape
* Signature: (Lcom/jme3/math/Vector3f;Lcom/jme3/math/Vector3f;)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_collision_shapes_SimplexCollisionShape_createShape__Lcom_jme3_math_Vector3f_2Lcom_jme3_math_Vector3f_2
(JNIEnv *, jobject, jobject, jobject);
/*
* Class: com_jme3_bullet_collision_shapes_SimplexCollisionShape
* Method: createShape
* Signature: (Lcom/jme3/math/Vector3f;Lcom/jme3/math/Vector3f;Lcom/jme3/math/Vector3f;)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_collision_shapes_SimplexCollisionShape_createShape__Lcom_jme3_math_Vector3f_2Lcom_jme3_math_Vector3f_2Lcom_jme3_math_Vector3f_2
(JNIEnv *, jobject, jobject, jobject, jobject);
/*
* Class: com_jme3_bullet_collision_shapes_SimplexCollisionShape
* Method: createShape
* Signature: (Lcom/jme3/math/Vector3f;Lcom/jme3/math/Vector3f;Lcom/jme3/math/Vector3f;Lcom/jme3/math/Vector3f;)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_collision_shapes_SimplexCollisionShape_createShape__Lcom_jme3_math_Vector3f_2Lcom_jme3_math_Vector3f_2Lcom_jme3_math_Vector3f_2Lcom_jme3_math_Vector3f_2
(JNIEnv *, jobject, jobject, jobject, jobject, jobject);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,21 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_collision_shapes_SphereCollisionShape */
#ifndef _Included_com_jme3_bullet_collision_shapes_SphereCollisionShape
#define _Included_com_jme3_bullet_collision_shapes_SphereCollisionShape
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_collision_shapes_SphereCollisionShape
* Method: createShape
* Signature: (F)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_collision_shapes_SphereCollisionShape_createShape
(JNIEnv *, jobject, jfloat);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,37 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_joints_ConeJoint */
#ifndef _Included_com_jme3_bullet_joints_ConeJoint
#define _Included_com_jme3_bullet_joints_ConeJoint
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_joints_ConeJoint
* Method: setLimit
* Signature: (JFFF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_ConeJoint_setLimit
(JNIEnv *, jobject, jlong, jfloat, jfloat, jfloat);
/*
* Class: com_jme3_bullet_joints_ConeJoint
* Method: setAngularOnly
* Signature: (JZ)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_ConeJoint_setAngularOnly
(JNIEnv *, jobject, jlong, jboolean);
/*
* Class: com_jme3_bullet_joints_ConeJoint
* Method: createJoint
* Signature: (JJLcom/jme3/math/Vector3f;Lcom/jme3/math/Matrix3f;Lcom/jme3/math/Vector3f;Lcom/jme3/math/Matrix3f;)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_joints_ConeJoint_createJoint
(JNIEnv *, jobject, jlong, jlong, jobject, jobject, jobject, jobject);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -85,7 +85,7 @@ extern "C" {
env->ThrowNew(newExc, "The native object does not exist.");
return 0;
}
return joint->getMotorTargetVelosity();
return joint->getMotorTargetVelocity();
}
/*

View File

@ -1,101 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_joints_HingeJoint */
#ifndef _Included_com_jme3_bullet_joints_HingeJoint
#define _Included_com_jme3_bullet_joints_HingeJoint
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_joints_HingeJoint
* Method: enableMotor
* Signature: (JZFF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_HingeJoint_enableMotor
(JNIEnv *, jobject, jlong, jboolean, jfloat, jfloat);
/*
* Class: com_jme3_bullet_joints_HingeJoint
* Method: getEnableAngularMotor
* Signature: (J)Z
*/
JNIEXPORT jboolean JNICALL Java_com_jme3_bullet_joints_HingeJoint_getEnableAngularMotor
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_HingeJoint
* Method: getMotorTargetVelocity
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_HingeJoint_getMotorTargetVelocity
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_HingeJoint
* Method: getMaxMotorImpulse
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_HingeJoint_getMaxMotorImpulse
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_HingeJoint
* Method: setLimit
* Signature: (JFF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_HingeJoint_setLimit__JFF
(JNIEnv *, jobject, jlong, jfloat, jfloat);
/*
* Class: com_jme3_bullet_joints_HingeJoint
* Method: setLimit
* Signature: (JFFFFF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_HingeJoint_setLimit__JFFFFF
(JNIEnv *, jobject, jlong, jfloat, jfloat, jfloat, jfloat, jfloat);
/*
* Class: com_jme3_bullet_joints_HingeJoint
* Method: getUpperLimit
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_HingeJoint_getUpperLimit
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_HingeJoint
* Method: getLowerLimit
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_HingeJoint_getLowerLimit
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_HingeJoint
* Method: setAngularOnly
* Signature: (JZ)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_HingeJoint_setAngularOnly
(JNIEnv *, jobject, jlong, jboolean);
/*
* Class: com_jme3_bullet_joints_HingeJoint
* Method: getHingeAngle
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_HingeJoint_getHingeAngle
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_HingeJoint
* Method: createJoint
* Signature: (JJLcom/jme3/math/Vector3f;Lcom/jme3/math/Vector3f;Lcom/jme3/math/Vector3f;Lcom/jme3/math/Vector3f;)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_joints_HingeJoint_createJoint
(JNIEnv *, jobject, jlong, jlong, jobject, jobject, jobject, jobject);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2018 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -56,6 +56,22 @@ extern "C" {
return joint->getAppliedImpulse();
}
/*
* Class: com_jme3_bullet_joints_PhysicsJoint
* Method: finalizeNative
* Signature: (J)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_PhysicsJoint_finalizeNative
(JNIEnv * env, jobject object, jlong jointId) {
btTypedConstraint* joint = reinterpret_cast<btTypedConstraint*> (jointId);
if (joint == NULL) {
jclass newExc = env->FindClass("java/lang/NullPointerException");
env->ThrowNew(newExc, "The native object does not exist.");
return;
}
delete(joint);
}
#ifdef __cplusplus
}
#endif

View File

@ -1,29 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_joints_PhysicsJoint */
#ifndef _Included_com_jme3_bullet_joints_PhysicsJoint
#define _Included_com_jme3_bullet_joints_PhysicsJoint
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_joints_PhysicsJoint
* Method: getAppliedImpulse
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_PhysicsJoint_getAppliedImpulse
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_PhysicsJoint
* Method: finalizeNative
* Signature: (J)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_PhysicsJoint_finalizeNative
(JNIEnv *, jobject, jlong);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -111,13 +111,13 @@ extern "C" {
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_Point2PointJoint_getImpulseClamp
(JNIEnv * env, jobject object, jlong jointId) {
btPoint2PointConstraint* joint = reinterpret_cast<btPoint2PointConstraint*>(jointId);
btPoint2PointConstraint* joint = reinterpret_cast<btPoint2PointConstraint*> (jointId);
if (joint == NULL) {
jclass newExc = env->FindClass("java/lang/NullPointerException");
env->ThrowNew(newExc, "The native object does not exist.");
return 0;
}
return joint->m_setting.m_damping;
return joint->m_setting.m_impulseClamp;
}
/*
@ -127,13 +127,13 @@ extern "C" {
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_Point2PointJoint_getTau
(JNIEnv * env, jobject object, jlong jointId) {
btPoint2PointConstraint* joint = reinterpret_cast<btPoint2PointConstraint*>(jointId);
btPoint2PointConstraint* joint = reinterpret_cast<btPoint2PointConstraint*> (jointId);
if (joint == NULL) {
jclass newExc = env->FindClass("java/lang/NullPointerException");
env->ThrowNew(newExc, "The native object does not exist.");
return 0;
}
return joint->m_setting.m_damping;
return joint->m_setting.m_tau;
}
/*

View File

@ -1,69 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_joints_Point2PointJoint */
#ifndef _Included_com_jme3_bullet_joints_Point2PointJoint
#define _Included_com_jme3_bullet_joints_Point2PointJoint
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_joints_Point2PointJoint
* Method: setDamping
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_Point2PointJoint_setDamping
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_Point2PointJoint
* Method: setImpulseClamp
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_Point2PointJoint_setImpulseClamp
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_Point2PointJoint
* Method: setTau
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_Point2PointJoint_setTau
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_Point2PointJoint
* Method: getDamping
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_Point2PointJoint_getDamping
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_Point2PointJoint
* Method: getImpulseClamp
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_Point2PointJoint_getImpulseClamp
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_Point2PointJoint
* Method: getTau
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_Point2PointJoint_getTau
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_Point2PointJoint
* Method: createJoint
* Signature: (JJLcom/jme3/math/Vector3f;Lcom/jme3/math/Vector3f;)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_joints_Point2PointJoint_createJoint
(JNIEnv *, jobject, jlong, jlong, jobject, jobject);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,69 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_joints_SixDofJoint */
#ifndef _Included_com_jme3_bullet_joints_SixDofJoint
#define _Included_com_jme3_bullet_joints_SixDofJoint
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_joints_SixDofJoint
* Method: getRotationalLimitMotor
* Signature: (JI)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_joints_SixDofJoint_getRotationalLimitMotor
(JNIEnv *, jobject, jlong, jint);
/*
* Class: com_jme3_bullet_joints_SixDofJoint
* Method: getTranslationalLimitMotor
* Signature: (J)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_joints_SixDofJoint_getTranslationalLimitMotor
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SixDofJoint
* Method: setLinearUpperLimit
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SixDofJoint_setLinearUpperLimit
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_joints_SixDofJoint
* Method: setLinearLowerLimit
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SixDofJoint_setLinearLowerLimit
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_joints_SixDofJoint
* Method: setAngularUpperLimit
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SixDofJoint_setAngularUpperLimit
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_joints_SixDofJoint
* Method: setAngularLowerLimit
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SixDofJoint_setAngularLowerLimit
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_joints_SixDofJoint
* Method: createJoint
* Signature: (JJLcom/jme3/math/Vector3f;Lcom/jme3/math/Matrix3f;Lcom/jme3/math/Vector3f;Lcom/jme3/math/Matrix3f;Z)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_joints_SixDofJoint_createJoint
(JNIEnv *, jobject, jlong, jlong, jobject, jobject, jobject, jobject, jboolean);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,61 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_joints_SixDofSpringJoint */
#ifndef _Included_com_jme3_bullet_joints_SixDofSpringJoint
#define _Included_com_jme3_bullet_joints_SixDofSpringJoint
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_joints_SixDofSpringJoint
* Method: enableSpring
* Signature: (JIZ)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SixDofSpringJoint_enableSpring
(JNIEnv *, jobject, jlong, jint, jboolean);
/*
* Class: com_jme3_bullet_joints_SixDofSpringJoint
* Method: setStiffness
* Signature: (JIF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SixDofSpringJoint_setStiffness
(JNIEnv *, jobject, jlong, jint, jfloat);
/*
* Class: com_jme3_bullet_joints_SixDofSpringJoint
* Method: setDamping
* Signature: (JIF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SixDofSpringJoint_setDamping
(JNIEnv *, jobject, jlong, jint, jfloat);
/*
* Class: com_jme3_bullet_joints_SixDofSpringJoint
* Method: setEquilibriumPoint
* Signature: (J)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SixDofSpringJoint_setEquilibriumPoint__J
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SixDofSpringJoint
* Method: setEquilibriumPoint
* Signature: (JI)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SixDofSpringJoint_setEquilibriumPoint__JI
(JNIEnv *, jobject, jlong, jint);
/*
* Class: com_jme3_bullet_joints_SixDofSpringJoint
* Method: createJoint
* Signature: (JJLcom/jme3/math/Vector3f;Lcom/jme3/math/Matrix3f;Lcom/jme3/math/Vector3f;Lcom/jme3/math/Matrix3f;Z)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_joints_SixDofSpringJoint_createJoint
(JNIEnv *, jobject, jlong, jlong, jobject, jobject, jobject, jobject, jboolean);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,469 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_joints_SliderJoint */
#ifndef _Included_com_jme3_bullet_joints_SliderJoint
#define _Included_com_jme3_bullet_joints_SliderJoint
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getLowerLinLimit
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getLowerLinLimit
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setLowerLinLimit
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setLowerLinLimit
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getUpperLinLimit
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getUpperLinLimit
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setUpperLinLimit
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setUpperLinLimit
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getLowerAngLimit
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getLowerAngLimit
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setLowerAngLimit
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setLowerAngLimit
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getUpperAngLimit
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getUpperAngLimit
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setUpperAngLimit
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setUpperAngLimit
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getSoftnessDirLin
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getSoftnessDirLin
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setSoftnessDirLin
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setSoftnessDirLin
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getRestitutionDirLin
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getRestitutionDirLin
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setRestitutionDirLin
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setRestitutionDirLin
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getDampingDirLin
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getDampingDirLin
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setDampingDirLin
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setDampingDirLin
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getSoftnessDirAng
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getSoftnessDirAng
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setSoftnessDirAng
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setSoftnessDirAng
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getRestitutionDirAng
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getRestitutionDirAng
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setRestitutionDirAng
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setRestitutionDirAng
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getDampingDirAng
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getDampingDirAng
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setDampingDirAng
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setDampingDirAng
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getSoftnessLimLin
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getSoftnessLimLin
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setSoftnessLimLin
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setSoftnessLimLin
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getRestitutionLimLin
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getRestitutionLimLin
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setRestitutionLimLin
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setRestitutionLimLin
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getDampingLimLin
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getDampingLimLin
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setDampingLimLin
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setDampingLimLin
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getSoftnessLimAng
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getSoftnessLimAng
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setSoftnessLimAng
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setSoftnessLimAng
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getRestitutionLimAng
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getRestitutionLimAng
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setRestitutionLimAng
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setRestitutionLimAng
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getDampingLimAng
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getDampingLimAng
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setDampingLimAng
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setDampingLimAng
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getSoftnessOrthoLin
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getSoftnessOrthoLin
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setSoftnessOrthoLin
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setSoftnessOrthoLin
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getRestitutionOrthoLin
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getRestitutionOrthoLin
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setRestitutionOrthoLin
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setRestitutionOrthoLin
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getDampingOrthoLin
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getDampingOrthoLin
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setDampingOrthoLin
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setDampingOrthoLin
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getSoftnessOrthoAng
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getSoftnessOrthoAng
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setSoftnessOrthoAng
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setSoftnessOrthoAng
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getRestitutionOrthoAng
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getRestitutionOrthoAng
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setRestitutionOrthoAng
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setRestitutionOrthoAng
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getDampingOrthoAng
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getDampingOrthoAng
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setDampingOrthoAng
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setDampingOrthoAng
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: isPoweredLinMotor
* Signature: (J)Z
*/
JNIEXPORT jboolean JNICALL Java_com_jme3_bullet_joints_SliderJoint_isPoweredLinMotor
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setPoweredLinMotor
* Signature: (JZ)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setPoweredLinMotor
(JNIEnv *, jobject, jlong, jboolean);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getTargetLinMotorVelocity
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getTargetLinMotorVelocity
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setTargetLinMotorVelocity
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setTargetLinMotorVelocity
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getMaxLinMotorForce
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getMaxLinMotorForce
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setMaxLinMotorForce
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setMaxLinMotorForce
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: isPoweredAngMotor
* Signature: (J)Z
*/
JNIEXPORT jboolean JNICALL Java_com_jme3_bullet_joints_SliderJoint_isPoweredAngMotor
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setPoweredAngMotor
* Signature: (JZ)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setPoweredAngMotor
(JNIEnv *, jobject, jlong, jboolean);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getTargetAngMotorVelocity
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getTargetAngMotorVelocity
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setTargetAngMotorVelocity
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setTargetAngMotorVelocity
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: getMaxAngMotorForce
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_SliderJoint_getMaxAngMotorForce
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: setMaxAngMotorForce
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_SliderJoint_setMaxAngMotorForce
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_SliderJoint
* Method: createJoint
* Signature: (JJLcom/jme3/math/Vector3f;Lcom/jme3/math/Matrix3f;Lcom/jme3/math/Vector3f;Lcom/jme3/math/Matrix3f;Z)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_joints_SliderJoint_createJoint
(JNIEnv *, jobject, jlong, jlong, jobject, jobject, jobject, jobject, jboolean);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,173 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_joints_motors_RotationalLimitMotor */
#ifndef _Included_com_jme3_bullet_joints_motors_RotationalLimitMotor
#define _Included_com_jme3_bullet_joints_motors_RotationalLimitMotor
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_joints_motors_RotationalLimitMotor
* Method: getLoLimit
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_motors_RotationalLimitMotor_getLoLimit
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_motors_RotationalLimitMotor
* Method: setLoLimit
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_motors_RotationalLimitMotor_setLoLimit
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_motors_RotationalLimitMotor
* Method: getHiLimit
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_motors_RotationalLimitMotor_getHiLimit
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_motors_RotationalLimitMotor
* Method: setHiLimit
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_motors_RotationalLimitMotor_setHiLimit
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_motors_RotationalLimitMotor
* Method: getTargetVelocity
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_motors_RotationalLimitMotor_getTargetVelocity
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_motors_RotationalLimitMotor
* Method: setTargetVelocity
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_motors_RotationalLimitMotor_setTargetVelocity
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_motors_RotationalLimitMotor
* Method: getMaxMotorForce
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_motors_RotationalLimitMotor_getMaxMotorForce
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_motors_RotationalLimitMotor
* Method: setMaxMotorForce
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_motors_RotationalLimitMotor_setMaxMotorForce
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_motors_RotationalLimitMotor
* Method: getMaxLimitForce
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_motors_RotationalLimitMotor_getMaxLimitForce
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_motors_RotationalLimitMotor
* Method: setMaxLimitForce
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_motors_RotationalLimitMotor_setMaxLimitForce
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_motors_RotationalLimitMotor
* Method: getDamping
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_motors_RotationalLimitMotor_getDamping
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_motors_RotationalLimitMotor
* Method: setDamping
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_motors_RotationalLimitMotor_setDamping
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_motors_RotationalLimitMotor
* Method: getLimitSoftness
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_motors_RotationalLimitMotor_getLimitSoftness
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_motors_RotationalLimitMotor
* Method: setLimitSoftness
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_motors_RotationalLimitMotor_setLimitSoftness
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_motors_RotationalLimitMotor
* Method: getERP
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_motors_RotationalLimitMotor_getERP
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_motors_RotationalLimitMotor
* Method: setERP
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_motors_RotationalLimitMotor_setERP
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_motors_RotationalLimitMotor
* Method: getBounce
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_motors_RotationalLimitMotor_getBounce
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_motors_RotationalLimitMotor
* Method: setBounce
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_motors_RotationalLimitMotor_setBounce
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_motors_RotationalLimitMotor
* Method: isEnableMotor
* Signature: (J)Z
*/
JNIEXPORT jboolean JNICALL Java_com_jme3_bullet_joints_motors_RotationalLimitMotor_isEnableMotor
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_motors_RotationalLimitMotor
* Method: setEnableMotor
* Signature: (JZ)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_motors_RotationalLimitMotor_setEnableMotor
(JNIEnv *, jobject, jlong, jboolean);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -141,9 +141,9 @@ extern "C" {
* Method: getLimitSoftness
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_motors_TranslationalLimitMotor_getLetLimitSoftness
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_motors_TranslationalLimitMotor_getLimitSoftness
(JNIEnv *env, jobject object, jlong motorId) {
btTranslationalLimitMotor* motor = reinterpret_cast<btTranslationalLimitMotor*>(motorId);
btTranslationalLimitMotor* motor = reinterpret_cast<btTranslationalLimitMotor*> (motorId);
if (motor == NULL) {
jclass newExc = env->FindClass("java/lang/NullPointerException");
env->ThrowNew(newExc, "The native object does not exist.");

View File

@ -1,109 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_joints_motors_TranslationalLimitMotor */
#ifndef _Included_com_jme3_bullet_joints_motors_TranslationalLimitMotor
#define _Included_com_jme3_bullet_joints_motors_TranslationalLimitMotor
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: com_jme3_bullet_joints_motors_TranslationalLimitMotor
* Method: getLowerLimit
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_motors_TranslationalLimitMotor_getLowerLimit
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_joints_motors_TranslationalLimitMotor
* Method: setLowerLimit
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_motors_TranslationalLimitMotor_setLowerLimit
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_joints_motors_TranslationalLimitMotor
* Method: getUpperLimit
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_motors_TranslationalLimitMotor_getUpperLimit
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_joints_motors_TranslationalLimitMotor
* Method: setUpperLimit
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_motors_TranslationalLimitMotor_setUpperLimit
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_joints_motors_TranslationalLimitMotor
* Method: getAccumulatedImpulse
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_motors_TranslationalLimitMotor_getAccumulatedImpulse
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_joints_motors_TranslationalLimitMotor
* Method: setAccumulatedImpulse
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_motors_TranslationalLimitMotor_setAccumulatedImpulse
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_joints_motors_TranslationalLimitMotor
* Method: getLimitSoftness
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_motors_TranslationalLimitMotor_getLimitSoftness
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_motors_TranslationalLimitMotor
* Method: setLimitSoftness
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_motors_TranslationalLimitMotor_setLimitSoftness
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_motors_TranslationalLimitMotor
* Method: getDamping
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_motors_TranslationalLimitMotor_getDamping
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_motors_TranslationalLimitMotor
* Method: setDamping
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_motors_TranslationalLimitMotor_setDamping
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_joints_motors_TranslationalLimitMotor
* Method: getRestitution
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_motors_TranslationalLimitMotor_getRestitution
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_joints_motors_TranslationalLimitMotor
* Method: setRestitution
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_joints_motors_TranslationalLimitMotor_setRestitution
(JNIEnv *, jobject, jlong, jfloat);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,331 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_objects_PhysicsCharacter */
#ifndef _Included_com_jme3_bullet_objects_PhysicsCharacter
#define _Included_com_jme3_bullet_objects_PhysicsCharacter
#ifdef __cplusplus
extern "C" {
#endif
#undef com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_NONE
#define com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_NONE 0L
#undef com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_01
#define com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_01 1L
#undef com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_02
#define com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_02 2L
#undef com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_03
#define com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_03 4L
#undef com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_04
#define com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_04 8L
#undef com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_05
#define com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_05 16L
#undef com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_06
#define com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_06 32L
#undef com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_07
#define com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_07 64L
#undef com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_08
#define com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_08 128L
#undef com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_09
#define com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_09 256L
#undef com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_10
#define com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_10 512L
#undef com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_11
#define com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_11 1024L
#undef com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_12
#define com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_12 2048L
#undef com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_13
#define com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_13 4096L
#undef com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_14
#define com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_14 8192L
#undef com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_15
#define com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_15 16384L
#undef com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_16
#define com_jme3_bullet_objects_PhysicsCharacter_COLLISION_GROUP_16 32768L
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: createGhostObject
* Signature: ()J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_createGhostObject
(JNIEnv *, jobject);
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: setCharacterFlags
* Signature: (J)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_setCharacterFlags
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: createCharacterObject
* Signature: (JJF)J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_createCharacterObject
(JNIEnv *, jobject, jlong, jlong, jfloat);
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: warp
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_warp
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: setWalkDirection
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_setWalkDirection
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: setUp
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_setUp
(JNIEnv *, jobject , jlong , jobject );
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: setAngularVelocity
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_setAngularVelocity
(JNIEnv *, jobject , jlong , jobject ) ;
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: getAngularVelocity
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_getAngularVelocity
(JNIEnv *, jobject , jlong , jobject );
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: setLinearVelocity
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_setLinearVelocity
(JNIEnv *, jobject , jlong , jobject );
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: getLinearVelocity
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_getLinearVelocity
(JNIEnv *, jobject , jlong , jobject );
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: setFallSpeed
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_setFallSpeed
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: setJumpSpeed
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_setJumpSpeed
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: setGravity
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_setGravity
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: getGravity
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_getGravity
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: setLinearDamping
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_setLinearDamping
(JNIEnv *, jobject , jlong ,jfloat );
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: getLinearDamping
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_getLinearDamping
(JNIEnv *, jobject , jlong );
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: setAngularDamping
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_setAngularDamping
(JNIEnv *, jobject , jlong ,jfloat );
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: getAngularDamping
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_getAngularDamping
(JNIEnv *, jobject , jlong );
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: setStepHeight
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_setStepHeight
(JNIEnv *, jobject , jlong ,jfloat );
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: getStepHeight
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_getStepHeight
(JNIEnv *, jobject , jlong );
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: setMaxSlope
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_setMaxSlope
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: getMaxSlope
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_getMaxSlope
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: setMaxPenetrationDepth
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_setMaxPenetrationDepth
(JNIEnv *, jobject , jlong , jfloat );
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: getMaxPenetrationDepth
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_getMaxPenetrationDepth
(JNIEnv *, jobject , jlong );
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: onGround
* Signature: (J)Z
*/
JNIEXPORT jboolean JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_onGround
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: jump
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_jump
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: applyImpulse
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_applyImpulse
(JNIEnv *, jobject , jlong ,jobject );
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: getPhysicsLocation
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_getPhysicsLocation
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: setCcdSweptSphereRadius
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_setCcdSweptSphereRadius
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: setCcdMotionThreshold
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_setCcdMotionThreshold
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: getCcdSweptSphereRadius
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_getCcdSweptSphereRadius
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: getCcdMotionThreshold
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_getCcdMotionThreshold
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: getCcdSquareMotionThreshold
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_getCcdSquareMotionThreshold
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_objects_PhysicsCharacter
* Method: finalizeNativeCharacter
* Signature: (J)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsCharacter_finalizeNativeCharacter
(JNIEnv *, jobject, jlong);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -1,167 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class com_jme3_bullet_objects_PhysicsGhostObject */
#ifndef _Included_com_jme3_bullet_objects_PhysicsGhostObject
#define _Included_com_jme3_bullet_objects_PhysicsGhostObject
#ifdef __cplusplus
extern "C" {
#endif
#undef com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_NONE
#define com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_NONE 0L
#undef com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_01
#define com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_01 1L
#undef com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_02
#define com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_02 2L
#undef com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_03
#define com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_03 4L
#undef com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_04
#define com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_04 8L
#undef com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_05
#define com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_05 16L
#undef com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_06
#define com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_06 32L
#undef com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_07
#define com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_07 64L
#undef com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_08
#define com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_08 128L
#undef com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_09
#define com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_09 256L
#undef com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_10
#define com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_10 512L
#undef com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_11
#define com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_11 1024L
#undef com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_12
#define com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_12 2048L
#undef com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_13
#define com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_13 4096L
#undef com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_14
#define com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_14 8192L
#undef com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_15
#define com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_15 16384L
#undef com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_16
#define com_jme3_bullet_objects_PhysicsGhostObject_COLLISION_GROUP_16 32768L
/*
* Class: com_jme3_bullet_objects_PhysicsGhostObject
* Method: createGhostObject
* Signature: ()J
*/
JNIEXPORT jlong JNICALL Java_com_jme3_bullet_objects_PhysicsGhostObject_createGhostObject
(JNIEnv *, jobject);
/*
* Class: com_jme3_bullet_objects_PhysicsGhostObject
* Method: setGhostFlags
* Signature: (J)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsGhostObject_setGhostFlags
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_objects_PhysicsGhostObject
* Method: setPhysicsLocation
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsGhostObject_setPhysicsLocation
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_objects_PhysicsGhostObject
* Method: setPhysicsRotation
* Signature: (JLcom/jme3/math/Matrix3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsGhostObject_setPhysicsRotation__JLcom_jme3_math_Matrix3f_2
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_objects_PhysicsGhostObject
* Method: setPhysicsRotation
* Signature: (JLcom/jme3/math/Quaternion;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsGhostObject_setPhysicsRotation__JLcom_jme3_math_Quaternion_2
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_objects_PhysicsGhostObject
* Method: getPhysicsLocation
* Signature: (JLcom/jme3/math/Vector3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsGhostObject_getPhysicsLocation
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_objects_PhysicsGhostObject
* Method: getPhysicsRotation
* Signature: (JLcom/jme3/math/Quaternion;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsGhostObject_getPhysicsRotation
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_objects_PhysicsGhostObject
* Method: getPhysicsRotationMatrix
* Signature: (JLcom/jme3/math/Matrix3f;)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsGhostObject_getPhysicsRotationMatrix
(JNIEnv *, jobject, jlong, jobject);
/*
* Class: com_jme3_bullet_objects_PhysicsGhostObject
* Method: getOverlappingObjects
* Signature: (J)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsGhostObject_getOverlappingObjects
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_objects_PhysicsGhostObject
* Method: getOverlappingCount
* Signature: (J)I
*/
JNIEXPORT jint JNICALL Java_com_jme3_bullet_objects_PhysicsGhostObject_getOverlappingCount
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_objects_PhysicsGhostObject
* Method: setCcdSweptSphereRadius
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsGhostObject_setCcdSweptSphereRadius
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_objects_PhysicsGhostObject
* Method: setCcdMotionThreshold
* Signature: (JF)V
*/
JNIEXPORT void JNICALL Java_com_jme3_bullet_objects_PhysicsGhostObject_setCcdMotionThreshold
(JNIEnv *, jobject, jlong, jfloat);
/*
* Class: com_jme3_bullet_objects_PhysicsGhostObject
* Method: getCcdSweptSphereRadius
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_objects_PhysicsGhostObject_getCcdSweptSphereRadius
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_objects_PhysicsGhostObject
* Method: getCcdMotionThreshold
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_objects_PhysicsGhostObject_getCcdMotionThreshold
(JNIEnv *, jobject, jlong);
/*
* Class: com_jme3_bullet_objects_PhysicsGhostObject
* Method: getCcdSquareMotionThreshold
* Signature: (J)F
*/
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_objects_PhysicsGhostObject_getCcdSquareMotionThreshold
(JNIEnv *, jobject, jlong);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -52,9 +52,7 @@ extern "C" {
btMotionState* motionState = reinterpret_cast<btMotionState*>(motionstatId);
btCollisionShape* shape = reinterpret_cast<btCollisionShape*>(shapeId);
btVector3 localInertia = btVector3();
if(mass > 0){
shape->calculateLocalInertia(mass, localInertia);
}
shape->calculateLocalInertia(mass, localInertia);
btRigidBody* body = new btRigidBody(mass, motionState, shape, localInertia);
body->setUserPointer(NULL);
return reinterpret_cast<jlong>(body);

Some files were not shown because too many files have changed in this diff Show More