Compare commits
187 Commits
master
...
v3.2.4-sta
Author | SHA1 | Date | |
---|---|---|---|
|
8291d6192b | ||
|
a8bf087fd1 | ||
|
4c3234ec1d | ||
|
13500861c8 | ||
|
3523ab06d3 | ||
|
b0d86f3480 | ||
|
0a485ecfc0 | ||
|
65aea20367 | ||
|
4bb8280fb2 | ||
|
b2a4f10782 | ||
|
c996b50a3f | ||
|
8f3feb8012 | ||
|
eb5d0bea2a | ||
|
bf41bae18a | ||
|
db89c64e4b | ||
|
200714e2a8 | ||
|
190e42a677 | ||
|
341117dd6e | ||
|
a5c1cd87e8 | ||
|
6efc25f5b2 | ||
|
ccfaeab9d4 | ||
|
a582b7d1ca | ||
|
dc4b71ce2b | ||
|
b0db8923d1 | ||
|
5f55bf4d5d | ||
|
0814858284 | ||
|
06aa011208 | ||
|
a516d18699 | ||
|
b1e7399d97 | ||
|
14281eb8cb | ||
|
37ee57e845 | ||
|
67b32790ee | ||
|
31aab243e6 | ||
|
5220659a0b | ||
|
447a9df7bb | ||
|
e2245aa2f3 | ||
|
ba88127bd2 | ||
|
417defb43a | ||
|
ff0b1d6a70 | ||
|
088b48ec6b | ||
|
a91775041f | ||
|
6689f86348 | ||
|
56172a43f9 | ||
|
d180917af4 | ||
|
53eff66f9c | ||
|
7cf2023c35 | ||
|
ca8970c760 | ||
|
b9dccbb060 | ||
|
8b04ff92c2 | ||
|
243f9f0063 | ||
|
6471035226 | ||
|
8a294f9892 | ||
|
92e923df20 | ||
|
ca33035941 | ||
|
acd056584d | ||
|
47d7fdd930 | ||
|
1d7f7bae57 | ||
|
058d729e55 | ||
|
e2d4f91eef | ||
|
50f62624c4 | ||
|
0ca9205bab | ||
|
4f085c6254 | ||
|
5e313740ca | ||
|
95c92e5b5b | ||
|
643914c2be | ||
|
62ce6ca406 | ||
|
db1b8f9eb4 | ||
|
a655134bb7 | ||
|
bee38da3b8 | ||
|
dbb1bba646 | ||
|
4541b0bde4 | ||
|
7361aba280 | ||
|
d61391ea69 | ||
|
8f8b6b93e5 | ||
|
eabd05acdf | ||
|
c09a36d284 | ||
|
a3f88aa164 | ||
|
594834f996 | ||
|
657dc75abf | ||
|
4c5682104d | ||
|
f00f68224f | ||
|
b8360100fe | ||
|
b06cf30b2c | ||
|
27f5ea6bb0 | ||
|
860b338ed2 | ||
|
0d3b5a717f | ||
|
19b4a74070 | ||
|
0c7f194feb | ||
|
61e19c6381 | ||
|
7f5a1b7dd5 | ||
|
ea23b6ad55 | ||
|
97a26c4355 | ||
|
af7a209b69 | ||
|
ed800cc9ab | ||
|
6d25a29e0a | ||
|
55e93fb7d5 | ||
|
c390e98120 | ||
|
a391197f5c | ||
|
dd902da7a0 | ||
|
6f435bfcd1 | ||
|
82b7eaa8d2 | ||
|
af6fa847ac | ||
|
13d9bafac7 | ||
|
5f39e5aafd | ||
|
8558dcb44a | ||
|
b5cb4c0c13 | ||
|
5068f1980d | ||
|
e63a6255cd | ||
|
6f6041f6ae | ||
|
990ad7a4bd | ||
|
af5d44b603 | ||
|
39c1c6ee0a | ||
|
d0d67af395 | ||
|
abe614cdec | ||
|
d1c654359d | ||
|
8ed4c222df | ||
|
54a98f13e5 | ||
|
5520863078 | ||
|
0f66b814b3 | ||
|
f71aad128a | ||
|
1c5373876e | ||
|
6d19657aa2 | ||
|
8e454a6536 | ||
|
d57434be7a | ||
|
5bbc6bcf1e | ||
|
7e17cdc498 | ||
|
e42ff35119 | ||
|
0553e9d9a2 | ||
|
2bb20c9537 | ||
|
7f14ad18c7 | ||
|
1916a6a177 | ||
|
b21619bd66 | ||
|
3b43907301 | ||
|
f338e7347c | ||
|
45e7b4c6ed | ||
|
f3351256cb | ||
|
1fbfc7d465 | ||
|
c5921d8242 | ||
|
f1d5032f7a | ||
|
26644c89f5 | ||
|
bbe8f01f0f | ||
|
6d5758c914 | ||
|
9738fc0525 | ||
|
1c8a8f2355 | ||
|
e7845e37ea | ||
|
72eac2c738 | ||
|
c09014dd1d | ||
|
52bbb7ad8a | ||
|
4b68a4c9dc | ||
|
8a3d628263 | ||
|
8fab216fd3 | ||
|
e6f8b368a0 | ||
|
e6b23342fb | ||
|
4f664f33cc | ||
|
5a1a5771ec | ||
|
f533e5003d | ||
|
3122e8044d | ||
|
a17f0ad73b | ||
|
ba37746c44 | ||
|
66e602c825 | ||
|
5dc585f5c4 | ||
|
e38d70e7be | ||
|
e11c5da483 | ||
|
69ca84d377 | ||
|
ee58677ed9 | ||
|
b2606d396e | ||
|
8b70b64505 | ||
|
36e09ee456 | ||
|
739831142e | ||
|
81ba0d7249 | ||
|
66a46920b9 | ||
|
0090e3e279 | ||
|
5618b52c24 | ||
|
631794f7d6 | ||
|
f85624a20a | ||
|
01d0725a78 | ||
|
5a471f7ef7 | ||
|
8ef1f2ef3b | ||
|
5aef90da47 | ||
|
d36bbcf26c | ||
|
b2717e19ef | ||
|
8f1ee0ec9a | ||
|
e87eeb20a5 | ||
|
d72e5ea39f | ||
|
ad2cb1a469 | ||
|
d0ae1a69a8 | ||
|
95d33e6c4b |
96
.gitignore
vendored
96
.gitignore
vendored
@ -1,47 +1,49 @@
|
|||||||
**/nbproject/private/
|
**/nbproject/private/
|
||||||
**/.classpath
|
**/.classpath
|
||||||
**/.settings
|
**/.settings
|
||||||
**/.project
|
**/.project
|
||||||
**/out
|
**/.vscode
|
||||||
/.gradle/
|
**/out/
|
||||||
/.nb-gradle/
|
/.gradle/
|
||||||
/.idea/
|
/.nb-gradle/
|
||||||
/dist/
|
/.idea/
|
||||||
/build/
|
/dist/
|
||||||
/bin/
|
/build/
|
||||||
/netbeans/
|
/bin/
|
||||||
/.classpath
|
/netbeans/
|
||||||
/.project
|
/.classpath
|
||||||
/.settings
|
/.project
|
||||||
*.dll
|
/.settings
|
||||||
*.so
|
*.dll
|
||||||
*.jnilib
|
*.so
|
||||||
*.dylib
|
*.jnilib
|
||||||
*.iml
|
*.dylib
|
||||||
.gradletasknamecache
|
*.iml
|
||||||
.DS_Store
|
.gradletasknamecache
|
||||||
/jme3-core/src/main/resources/com/jme3/system/version.properties
|
.DS_Store
|
||||||
/jme3-*/build/
|
/jme3-core/src/main/resources/com/jme3/system/version.properties
|
||||||
/jme3-bullet-native/bullet.zip
|
/jme3-*/build/
|
||||||
/jme3-bullet-native/bullet3.zip
|
/jme3-*/bin/
|
||||||
/jme3-bullet-native/bullet-2.82-r2704/
|
/jme3-bullet-native/bullet3.zip
|
||||||
/jme3-bullet-native/bullet3-2.83.7/
|
/jme3-bullet-native/bullet3-*/
|
||||||
/jme3-android-native/openal-soft/
|
/jme3-bullet-native/src/native/cpp/com_jme3_bullet_*.h
|
||||||
/jme3-android-native/OpenALSoft.zip
|
/jme3-android-native/openal-soft/
|
||||||
/jme3-android-native/src/native/jme_decode/STBI/
|
/jme3-android-native/OpenALSoft.zip
|
||||||
/jme3-android-native/src/native/jme_decode/Tremor/
|
/jme3-android-native/src/native/jme_decode/STBI/
|
||||||
/jme3-android-native/src/native/jme_decode/com_jme3_audio_plugins_NativeVorbisFile.h
|
/jme3-android-native/src/native/jme_decode/Tremor/
|
||||||
/jme3-android-native/src/native/jme_decode/com_jme3_texture_plugins_AndroidNativeImageLoader.h
|
/jme3-android-native/src/native/jme_decode/com_jme3_audio_plugins_NativeVorbisFile.h
|
||||||
/jme3-android-native/stb_image.h
|
/jme3-android-native/src/native/jme_decode/com_jme3_texture_plugins_AndroidNativeImageLoader.h
|
||||||
!/jme3-bullet-native/libs/native/windows/x86_64/bulletjme.dll
|
/jme3-android-native/stb_image.h
|
||||||
!/jme3-bullet-native/libs/native/windows/x86/bulletjme.dll
|
!/jme3-bullet-native/libs/native/windows/x86_64/bulletjme.dll
|
||||||
!/jme3-bullet-native/libs/native/osx/x86/libbulletjme.dylib
|
!/jme3-bullet-native/libs/native/windows/x86/bulletjme.dll
|
||||||
!/jme3-bullet-native/libs/native/osx/x86_64/libbulletjme.dylib
|
!/jme3-bullet-native/libs/native/osx/x86/libbulletjme.dylib
|
||||||
!/jme3-bullet-native/libs/native/linux/x86/libbulletjme.so
|
!/jme3-bullet-native/libs/native/osx/x86_64/libbulletjme.dylib
|
||||||
!/jme3-bullet-native/libs/native/linux/x86_64/libbulletjme.so
|
!/jme3-bullet-native/libs/native/linux/x86/libbulletjme.so
|
||||||
!/jme3-vr/src/main/resources/**/*.dylib
|
!/jme3-bullet-native/libs/native/linux/x86_64/libbulletjme.so
|
||||||
!/jme3-vr/src/main/resources/**/*.so
|
/jme3-examples/private/
|
||||||
!/jme3-vr/src/main/resources/**/*.so.dbg
|
!/jme3-vr/src/main/resources/**/*.dylib
|
||||||
!/jme3-vr/src/main/resources/**/*.dll
|
!/jme3-vr/src/main/resources/**/*.so
|
||||||
!/jme3-vr/src/main/resources/**/*.pdb
|
!/jme3-vr/src/main/resources/**/*.so.dbg
|
||||||
/buildMaven.bat
|
!/jme3-vr/src/main/resources/**/*.dll
|
||||||
|
!/jme3-vr/src/main/resources/**/*.pdb
|
||||||
|
/buildMaven.bat
|
@ -1,11 +1,11 @@
|
|||||||
language: java
|
language: java
|
||||||
sudo: false
|
sudo: true
|
||||||
dist: precise
|
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
- v3.1
|
- v3.2
|
||||||
|
- /^v3.2.*$/
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
@ -14,7 +14,9 @@ matrix:
|
|||||||
env: UPLOAD=true UPLOAD_NATIVE=true
|
env: UPLOAD=true UPLOAD_NATIVE=true
|
||||||
- os: linux
|
- os: linux
|
||||||
jdk: openjdk7
|
jdk: openjdk7
|
||||||
|
dist: precise
|
||||||
- os: osx
|
- os: osx
|
||||||
|
osx_image: xcode9.3
|
||||||
env: UPLOAD_NATIVE=true
|
env: UPLOAD_NATIVE=true
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
|
@ -55,5 +55,5 @@ We generally abide by the standard Java Code Conventions. Besides that, just mak
|
|||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
- How to edit the wiki - WIP
|
- How to edit the [wiki](https://github.com/jMonkeyEngine/wiki).
|
||||||
- How to edit JavaDocs - WIP
|
- How to edit JavaDocs - WIP
|
||||||
|
@ -3,10 +3,13 @@ version: 1.0.{build}.{branch}
|
|||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
- v3.2
|
||||||
|
|
||||||
only_commits:
|
only_commits:
|
||||||
files:
|
files:
|
||||||
- jme3-bullet-native/
|
- jme3-bullet-native/
|
||||||
|
- appveyor.yml
|
||||||
|
- gradle.properties
|
||||||
|
|
||||||
skip_tags: true
|
skip_tags: true
|
||||||
|
|
||||||
@ -34,13 +37,15 @@ build_script:
|
|||||||
cache:
|
cache:
|
||||||
- C:\Users\appveyor\.gradle\caches
|
- C:\Users\appveyor\.gradle\caches
|
||||||
- C:\Users\appveyor\.gradle\wrapper
|
- C:\Users\appveyor\.gradle\wrapper
|
||||||
- jme3-bullet-native\bullet3.zip
|
- jme3-bullet-native\bullet3.zip -> gradle.properties
|
||||||
|
|
||||||
test: off
|
test: off
|
||||||
deploy: off
|
deploy: off
|
||||||
|
|
||||||
on_success:
|
on_success:
|
||||||
- cmd: >-
|
- 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
|
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"
|
git config --global user.email "appveyor"
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
|
google()
|
||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:2.1.0'
|
classpath 'com.android.tools.build:gradle:3.1.4'
|
||||||
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.5'
|
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 {
|
ext {
|
||||||
ndkCommandPath = ""
|
ndkCommandPath = ""
|
||||||
ndkExists = false
|
ndkExists = false
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
# Version number used for plugins, only 3 numbers (e.g. 3.1.3)
|
# 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!
|
# Version used for application and settings folder, no spaces!
|
||||||
jmeMainVersion = 3.2
|
jmeMainVersion = 3.2.4
|
||||||
# Version addition pre-alpha-svn, Stable, Beta
|
# Version addition pre-alpha-svn, Stable, Beta
|
||||||
jmeVersionTag = SNAPSHOT
|
jmeVersionTag = stable
|
||||||
# Increment this each time jmeVersionTag changes but jmeVersion stays the same
|
# Increment this each time jmeVersionTag changes but jmeVersion stays the same
|
||||||
jmeVersionTagID = 0
|
jmeVersionTagID = 0
|
||||||
|
|
||||||
# specify if JavaDoc should be built
|
# specify if JavaDoc should be built
|
||||||
buildJavaDoc = false
|
buildJavaDoc = true
|
||||||
|
|
||||||
# specify if SDK and Native libraries get built
|
# specify if SDK and Native libraries get built
|
||||||
buildNativeProjects = false
|
buildNativeProjects = false
|
||||||
@ -16,11 +16,11 @@ buildAndroidExamples = false
|
|||||||
|
|
||||||
# Path to android NDK for building native libraries
|
# Path to android NDK for building native libraries
|
||||||
#ndkPath=/Users/normenhansen/Documents/Code-Import/android-ndk-r7
|
#ndkPath=/Users/normenhansen/Documents/Code-Import/android-ndk-r7
|
||||||
ndkPath = /opt/android-ndk-r10c
|
ndkPath = /opt/android-ndk-r16b
|
||||||
|
|
||||||
# Path for downloading native Bullet
|
# Path for downloading native Bullet
|
||||||
bulletUrl = https://github.com/bulletphysics/bullet3/archive/2.86.1.zip
|
bulletUrl = https://github.com/bulletphysics/bullet3/archive/2.87.zip
|
||||||
bulletFolder = bullet3-2.86.1
|
bulletFolder = bullet3-2.87
|
||||||
bulletZipFile = bullet3.zip
|
bulletZipFile = bullet3.zip
|
||||||
|
|
||||||
# POM settings
|
# POM settings
|
||||||
|
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
11
gradle/wrapper/gradle-wrapper.properties
vendored
11
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,6 +1,5 @@
|
|||||||
#Sun Sep 17 22:55:30 EDT 2017
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionPath=wrapper/dists
|
||||||
distributionPath=wrapper/dists
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStorePath=wrapper/dists
|
||||||
zipStorePath=wrapper/dists
|
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-bin.zip
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-bin.zip
|
|
||||||
|
6
gradlew
vendored
6
gradlew
vendored
@ -33,11 +33,11 @@ DEFAULT_JVM_OPTS=""
|
|||||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
MAX_FD="maximum"
|
MAX_FD="maximum"
|
||||||
|
|
||||||
warn ( ) {
|
warn () {
|
||||||
echo "$*"
|
echo "$*"
|
||||||
}
|
}
|
||||||
|
|
||||||
die ( ) {
|
die () {
|
||||||
echo
|
echo
|
||||||
echo "$*"
|
echo "$*"
|
||||||
echo
|
echo
|
||||||
@ -155,7 +155,7 @@ if $cygwin ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Escape application args
|
# Escape application args
|
||||||
save ( ) {
|
save () {
|
||||||
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
||||||
echo " "
|
echo " "
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,9 @@
|
|||||||
package jme3test.android;
|
package jme3test.android;
|
||||||
|
|
||||||
import com.jme3.app.SimpleApplication;
|
import com.jme3.app.SimpleApplication;
|
||||||
import com.jme3.light.AmbientLight;
|
|
||||||
import com.jme3.light.PointLight;
|
|
||||||
import com.jme3.material.Material;
|
import com.jme3.material.Material;
|
||||||
import com.jme3.math.ColorRGBA;
|
|
||||||
import com.jme3.math.Vector3f;
|
|
||||||
import com.jme3.scene.Geometry;
|
import com.jme3.scene.Geometry;
|
||||||
import com.jme3.scene.shape.Box;
|
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
|
* Test case to look for images stored in the Android drawable and mipmap directories. Image files are
|
||||||
|
@ -1,16 +1,12 @@
|
|||||||
package org.jmonkeyengine.jme3androidexamples;
|
package org.jmonkeyengine.jme3androidexamples;
|
||||||
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.util.Log;
|
|
||||||
import com.jme3.app.AndroidHarnessFragment;
|
import com.jme3.app.AndroidHarnessFragment;
|
||||||
|
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.logging.LogManager;
|
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 {
|
public class JmeFragment extends AndroidHarnessFragment {
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package org.jmonkeyengine.jme3androidexamples;
|
package org.jmonkeyengine.jme3androidexamples;
|
||||||
|
|
||||||
import android.app.Activity;
|
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.pm.ApplicationInfo;
|
import android.content.pm.ApplicationInfo;
|
||||||
import android.os.Bundle;
|
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
|
* 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
|
* @param view
|
||||||
*/
|
*/
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
package org.jmonkeyengine.jme3androidexamples;
|
package org.jmonkeyengine.jme3androidexamples;
|
||||||
|
|
||||||
import android.app.FragmentTransaction;
|
import android.app.FragmentTransaction;
|
||||||
import android.support.v7.app.AppCompatActivity;
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.util.Log;
|
import android.support.v7.app.AppCompatActivity;
|
||||||
import android.view.Menu;
|
import android.view.Menu;
|
||||||
import android.view.MenuInflater;
|
import android.view.MenuInflater;
|
||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
|
@ -3,7 +3,6 @@ package com.jme3.app;
|
|||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.app.AlertDialog;
|
import android.app.AlertDialog;
|
||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
import android.content.pm.ActivityInfo;
|
|
||||||
import android.graphics.drawable.Drawable;
|
import android.graphics.drawable.Drawable;
|
||||||
import android.graphics.drawable.NinePatchDrawable;
|
import android.graphics.drawable.NinePatchDrawable;
|
||||||
import android.opengl.GLSurfaceView;
|
import android.opengl.GLSurfaceView;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2015 jMonkeyEngine
|
* Copyright (c) 2009-2019 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* 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
|
* Set the maximum resolution for the surfaceview in either the
|
||||||
* width or height screen direction depending on the screen size.
|
* 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.
|
* will have the resolution set to a maximum of maxResolutionDimension.
|
||||||
* The other direction will be set to a value that maintains the aspect
|
* The other direction will be set to a value that maintains the aspect
|
||||||
* ratio of the surfaceview. </br>
|
* 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
|
* Fragment. For jME, this is a FrameLayout that contains the GLSurfaceView
|
||||||
* and an overlaying SplashScreen Image (if used). The View that is returned
|
* 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
|
* by the Activity's layout parameters for this Fragment. For jME, we also
|
||||||
* update the application reference to the new view.
|
* update the application reference to the new view.
|
||||||
*
|
*
|
||||||
* @param inflater
|
* @param inflater
|
||||||
* @param container
|
* @param container
|
||||||
* @param savedInstanceState
|
* @param savedInstanceState
|
||||||
* @return
|
* @return the new view
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2012 jMonkeyEngine
|
* Copyright (c) 2009-2019 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* 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
|
* This constructor allows you to specify the output file of the video as well as the quality
|
||||||
* @param file the video file
|
* @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 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) {
|
public VideoRecorderAppState(File file, float quality) {
|
||||||
this.file = file;
|
this.file = file;
|
||||||
|
@ -6,7 +6,6 @@ import com.jme3.asset.*;
|
|||||||
import com.jme3.system.android.JmeAndroidSystem;
|
import com.jme3.system.android.JmeAndroidSystem;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
public class AndroidLocator implements AssetLocator {
|
public class AndroidLocator implements AssetLocator {
|
||||||
|
@ -36,7 +36,6 @@ import android.view.GestureDetector;
|
|||||||
import android.view.MotionEvent;
|
import android.view.MotionEvent;
|
||||||
import android.view.ScaleGestureDetector;
|
import android.view.ScaleGestureDetector;
|
||||||
import com.jme3.input.event.TouchEvent;
|
import com.jme3.input.event.TouchEvent;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -42,7 +42,6 @@ import android.view.View;
|
|||||||
import com.jme3.input.JoyInput;
|
import com.jme3.input.JoyInput;
|
||||||
import com.jme3.input.TouchInput;
|
import com.jme3.input.TouchInput;
|
||||||
import com.jme3.system.AppSettings;
|
import com.jme3.system.AppSettings;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -37,7 +37,6 @@ import android.view.InputDevice;
|
|||||||
import android.view.KeyEvent;
|
import android.view.KeyEvent;
|
||||||
import android.view.MotionEvent;
|
import android.view.MotionEvent;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2012 jMonkeyEngine
|
* Copyright (c) 2009-2018 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* 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.
|
* AndroidSensorJoyInput converts the Android Sensor system into Joystick events.
|
||||||
* A single joystick is configured and includes data for all configured sensors
|
* 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.
|
* Each axis is named according to the static strings in SensorJoystickAxis.
|
||||||
* Refer to the strings defined in SensorJoystickAxis for a list of supported
|
* 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
|
* Calculates the device orientation based off the data received from the
|
||||||
* Acceleration Sensor and Mangetic Field sensor
|
* Acceleration Sensor and Magnetic Field sensor
|
||||||
* Values are returned relative to the Earth.
|
* Values are returned relative to the Earth.
|
||||||
*
|
*
|
||||||
* From the Android Doc
|
* From the Android Doc
|
||||||
|
@ -36,7 +36,6 @@ import android.view.MotionEvent;
|
|||||||
import com.jme3.input.event.TouchEvent;
|
import com.jme3.input.event.TouchEvent;
|
||||||
import com.jme3.math.Vector2f;
|
import com.jme3.math.Vector2f;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2015 jMonkeyEngine
|
* Copyright (c) 2009-2019 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* 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;
|
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.
|
* classes.
|
||||||
*
|
*
|
||||||
* @author Kirill Vainer
|
* @author Kirill Vainer
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2012 jMonkeyEngine
|
* Copyright (c) 2009-2018 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* 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.
|
// stops at the setFormat call without a crash.
|
||||||
// We look at the user setting for alpha bits and set the surfaceview
|
// We look at the user setting for alpha bits and set the surfaceview
|
||||||
// PixelFormat to either Opaque, Transparent, or Translucent.
|
// 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).
|
// For best rendering performance, use Opaque (alpha bits = 0).
|
||||||
int curAlphaBits = settings.getAlphaBits();
|
int curAlphaBits = settings.getAlphaBits();
|
||||||
logger.log(Level.FINE, "curAlphaBits: {0}", curAlphaBits);
|
logger.log(Level.FINE, "curAlphaBits: {0}", curAlphaBits);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2012 jMonkeyEngine
|
* Copyright (c) 2009-2018 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -69,7 +69,7 @@ public class BlenderKey extends ModelKey {
|
|||||||
*/
|
*/
|
||||||
protected String usedWorld;
|
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).
|
* null. If the value is null the importer will use its own default material (gray color - like in blender).
|
||||||
*/
|
*/
|
||||||
protected Material defaultMaterial;
|
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
|
* 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
|
* @param usedWorld
|
||||||
* the name of the WORLD block used during loading
|
* 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
|
* @return the name of the WORLD block used during loading
|
||||||
*/
|
*/
|
||||||
public String getUsedWorld() {
|
public String getUsedWorld() {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2012 jMonkeyEngine
|
* Copyright (c) 2009-2019 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -304,10 +304,7 @@ public class BlenderContext {
|
|||||||
*
|
*
|
||||||
* @param oldMemoryAddress
|
* @param oldMemoryAddress
|
||||||
* the address of the feature
|
* the address of the feature
|
||||||
* @param featureName
|
* @param featureDataType
|
||||||
* the name of the feature
|
|
||||||
* @param structure
|
|
||||||
* the filled structure of the feature
|
|
||||||
* @param feature
|
* @param feature
|
||||||
* the feature we want to store
|
* the feature we want to store
|
||||||
*/
|
*/
|
||||||
@ -330,7 +327,7 @@ public class BlenderContext {
|
|||||||
* @param oldMemoryAddress
|
* @param oldMemoryAddress
|
||||||
* the address of the feature
|
* the address of the feature
|
||||||
* @param loadedFeatureDataType
|
* @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
|
* structure or already converted feature
|
||||||
* @return loaded feature or null if it was not yet loaded
|
* @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.
|
* does not remove it.
|
||||||
*
|
*
|
||||||
* @return the structure from the top of the stack
|
* @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.
|
* either filled structure or already converted data.
|
||||||
*
|
*
|
||||||
* @author Marcin Roguski (Kaelthas)
|
* @author Marcin Roguski (Kaelthas)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2012 jMonkeyEngine
|
* Copyright (c) 2009-2019 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -220,7 +220,7 @@ public class BlenderLoader implements AssetLoader {
|
|||||||
} catch (BlenderFileException e) {
|
} catch (BlenderFileException e) {
|
||||||
throw new IOException(e.getLocalizedMessage(), e);
|
throw new IOException(e.getLocalizedMessage(), e);
|
||||||
} catch (Exception 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 {
|
} finally {
|
||||||
this.clear(assetInfo);
|
this.clear(assetInfo);
|
||||||
}
|
}
|
||||||
|
@ -48,8 +48,6 @@ public abstract class Constraint {
|
|||||||
* the constraint's structure (bConstraint clss in blender 2.49).
|
* the constraint's structure (bConstraint clss in blender 2.49).
|
||||||
* @param ownerOMA
|
* @param ownerOMA
|
||||||
* the old memory address of the constraint owner
|
* the old memory address of the constraint owner
|
||||||
* @param ownerType
|
|
||||||
* the type of the constraint owner
|
|
||||||
* @param influenceIpo
|
* @param influenceIpo
|
||||||
* the ipo curve of the influence factor
|
* the ipo curve of the influence factor
|
||||||
* @param blenderContext
|
* @param blenderContext
|
||||||
|
@ -153,7 +153,7 @@ public class ConstraintHelper extends AbstractBlenderHelper {
|
|||||||
* the blender context
|
* the blender context
|
||||||
* @return constraint object for the required type
|
* @return constraint object for the required type
|
||||||
* @throws BlenderFileException
|
* @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 {
|
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)) {
|
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
|
* @param oma
|
||||||
* the OMA of the feature (spatial or armature node)
|
* 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)
|
* the feature's subtarget (bone in a case of armature's node)
|
||||||
* @param space
|
* @param space
|
||||||
* the space the transform is evaluated to
|
* 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) {
|
public Transform getTransform(Long oma, String subtargetName, Space space) {
|
||||||
Spatial feature = (Spatial) blenderContext.getLoadedFeature(oma, LoadedDataType.FEATURE);
|
Spatial feature = (Spatial) blenderContext.getLoadedFeature(oma, LoadedDataType.FEATURE);
|
||||||
|
@ -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) {
|
for (Long boneOMA : alteredOmas) {
|
||||||
BoneContext boneContext = blenderContext.getBoneContext(boneOMA);
|
BoneContext boneContext = blenderContext.getBoneContext(boneOMA);
|
||||||
int boneIndex = skeleton.getBoneIndex(boneContext.getBone());
|
int boneIndex = skeleton.getBoneIndex(boneContext.getBone());
|
||||||
|
@ -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.
|
* 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)
|
* @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
|
* @param alongRatio
|
||||||
* the relative distance along the curve; should be a value between 0 and 1 inclusive;
|
* 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
|
* 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.
|
* based on the bevel generating parameters in blender.
|
||||||
* @param curveStructure
|
* @param curveStructure
|
||||||
* the structure with the curve's data (the curve being loaded, NOT the bevel curve)
|
* 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
|
* 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
|
* @param points
|
||||||
* the bevel 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
|
* 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)
|
* @author Marcin Roguski (Kaelthas)
|
||||||
*/
|
*/
|
||||||
@ -776,7 +776,7 @@ public class CurvesTemporalMesh extends TemporalMesh {
|
|||||||
}
|
}
|
||||||
if (cyclic) {
|
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
|
// 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]);
|
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
|
* @param alongRatio
|
||||||
* the relative distance along the curve; should be a value between 0 and 1 inclusive;
|
* 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
|
* if the value exceeds the boundaries it is truncated to them
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2012 jMonkeyEngine
|
* Copyright (c) 2009-2019 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* 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.
|
* Constructor. Creates an exception containing the given message.
|
||||||
* @param message
|
* @param message
|
||||||
* the message describing the problem that occured
|
* the message describing the problem that occurred
|
||||||
*/
|
*/
|
||||||
public BlenderFileException(String message) {
|
public BlenderFileException(String message) {
|
||||||
super(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.
|
* Constructor. Creates an exception that is based upon other thrown object. It contains the whole stacktrace then.
|
||||||
* @param throwable
|
* @param throwable
|
||||||
* an exception/error that occured
|
* an exception/error that occurred
|
||||||
*/
|
*/
|
||||||
public BlenderFileException(Throwable throwable) {
|
public BlenderFileException(Throwable throwable) {
|
||||||
super(throwable);
|
super(throwable);
|
||||||
@ -67,9 +67,9 @@ public class BlenderFileException extends Exception {
|
|||||||
/**
|
/**
|
||||||
* Constructor. Creates an exception with both a message and stacktrace.
|
* Constructor. Creates an exception with both a message and stacktrace.
|
||||||
* @param message
|
* @param message
|
||||||
* the message describing the problem that occured
|
* the message describing the problem that occurred
|
||||||
* @param throwable
|
* @param throwable
|
||||||
* an exception/error that occured
|
* an exception/error that occurred
|
||||||
*/
|
*/
|
||||||
public BlenderFileException(String message, Throwable throwable) {
|
public BlenderFileException(String message, Throwable throwable) {
|
||||||
super(message, throwable);
|
super(message, throwable);
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2012 jMonkeyEngine
|
* Copyright (c) 2009-2019 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -93,7 +93,7 @@ public class BlenderInputStream extends InputStream {
|
|||||||
try {
|
try {
|
||||||
this.readStreamToCache(bufferedInputStream);
|
this.readStreamToCache(bufferedInputStream);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new BlenderFileException("Problems occured while caching the file!", e);
|
throw new BlenderFileException("Problems occurred while caching the file!", e);
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
inputStream.close();
|
inputStream.close();
|
||||||
@ -144,7 +144,7 @@ public class BlenderInputStream extends InputStream {
|
|||||||
gis = new GZIPInputStream(new ByteArrayInputStream(cachedBuffer));
|
gis = new GZIPInputStream(new ByteArrayInputStream(cachedBuffer));
|
||||||
this.readStreamToCache(gis);
|
this.readStreamToCache(gis);
|
||||||
} catch (IOException e) {
|
} 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 {
|
} finally {
|
||||||
try {
|
try {
|
||||||
if (gis != null) {
|
if (gis != null) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2012 jMonkeyEngine
|
* Copyright (c) 2009-2018 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -85,7 +85,7 @@ public class DnaBlockData {
|
|||||||
names[i] = inputStream.readString();
|
names[i] = inputStream.readString();
|
||||||
}
|
}
|
||||||
|
|
||||||
// reding types
|
// reading types
|
||||||
inputStream.alignPosition(4);
|
inputStream.alignPosition(4);
|
||||||
identifier = inputStream.readByte() << 24 | inputStream.readByte() << 16 | inputStream.readByte() << 8 | inputStream.readByte();
|
identifier = inputStream.readByte() << 24 | inputStream.readByte() << 16 | inputStream.readByte() << 8 | inputStream.readByte();
|
||||||
if (identifier != TYPE_ID) {
|
if (identifier != TYPE_ID) {
|
||||||
@ -181,7 +181,7 @@ public class DnaBlockData {
|
|||||||
/**
|
/**
|
||||||
* This method converts the given identifier code to string.
|
* This method converts the given identifier code to string.
|
||||||
* @param code
|
* @param code
|
||||||
* the code taht is to be converted
|
* the code that is to be converted
|
||||||
* @return the string value of the identifier
|
* @return the string value of the identifier
|
||||||
*/
|
*/
|
||||||
private String toString(int code) {
|
private String toString(int code) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2012 jMonkeyEngine
|
* Copyright (c) 2009-2018 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -32,7 +32,7 @@
|
|||||||
package com.jme3.scene.plugins.blender.file;
|
package com.jme3.scene.plugins.blender.file;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An array that can be dynamically modified/
|
* An array that can be dynamically modified
|
||||||
* @author Marcin Roguski
|
* @author Marcin Roguski
|
||||||
* @param <T>
|
* @param <T>
|
||||||
* the type of stored data in the array
|
* 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. */
|
/** An array object that holds the required data. */
|
||||||
private T[] array;
|
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:
|
* 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.
|
* dynTable[a][b][c], where a,b,c are stored in the tableSizes table.
|
||||||
*/
|
*/
|
||||||
|
@ -27,7 +27,7 @@ class Field implements Cloneable {
|
|||||||
/** This variable indicates the level of the pointer. */
|
/** This variable indicates the level of the pointer. */
|
||||||
public int pointerLevel;
|
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;
|
public int[] tableSizes;
|
||||||
/** This variable indicates if the field is a function pointer. */
|
/** 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
|
* 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
|
* @param field
|
||||||
* the object that we copy
|
* 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
|
* @param blenderInputStream
|
||||||
* the stream we read data from
|
* the stream we read data from
|
||||||
* @throws BlenderFileException
|
* @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
|
* @param text
|
||||||
* the text we remove whitespaces from
|
* the text we remove whitespace from
|
||||||
*/
|
*/
|
||||||
private void removeWhitespaces(StringBuilder text) {
|
private void removeWhitespaces(StringBuilder text) {
|
||||||
for (int i = 0; i < text.length(); ++i) {
|
for (int i = 0; i < text.length(); ++i) {
|
||||||
@ -306,7 +306,7 @@ class Field implements Cloneable {
|
|||||||
StringBuilder result = new StringBuilder();
|
StringBuilder result = new StringBuilder();
|
||||||
result.append(this.getFullName());
|
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();
|
int nameLength = result.length();
|
||||||
result.append(' ');// at least one space is a must
|
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
|
for (int i = 1; i < NAME_LENGTH - nameLength; ++i) {// we start from i=1 because one space is already added
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2012 jMonkeyEngine
|
* Copyright (c) 2009-2018 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* 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.
|
* held by this structure within the blend file.
|
||||||
* @return a list of filled structures
|
* @return a list of filled structures
|
||||||
* @throws BlenderFileException
|
* @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.
|
* is thrown.
|
||||||
* @return the address of the feature stored in this structure
|
* @return the address of the feature stored in this structure
|
||||||
*/
|
*/
|
||||||
|
@ -102,12 +102,12 @@ public final class MaterialContext implements Savable {
|
|||||||
long flag = ((Number)structure.getFieldValue("flag")).longValue();
|
long flag = ((Number)structure.getFieldValue("flag")).longValue();
|
||||||
if((flag & FLAG_TRANSPARENT) != 0) {
|
if((flag & FLAG_TRANSPARENT) != 0) {
|
||||||
// veryfying if the transparency is present
|
// 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
|
// it is not required
|
||||||
boolean transparent = false;
|
boolean transparent = false;
|
||||||
if (diffuseColor != null) {
|
if (diffuseColor != null) {
|
||||||
transparent = diffuseColor.a < 1.0f;
|
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);
|
diffuseColor.set(1, 1, 1, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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.
|
* vector.
|
||||||
*
|
|
||||||
* @param the
|
|
||||||
* vector where the scale will be stored
|
|
||||||
*/
|
*/
|
||||||
public Vector3d toScaleVector() {
|
public Vector3d toScaleVector() {
|
||||||
Vector3d result = new Vector3d();
|
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.
|
* vector.
|
||||||
*
|
*
|
||||||
* @param the
|
* @param vector the vector where the scale will be stored
|
||||||
* vector where the scale will be stored
|
|
||||||
*/
|
*/
|
||||||
public void toScaleVector(Vector3d vector) {
|
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));
|
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));
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2012 jMonkeyEngine
|
* Copyright (c) 2009-2019 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* 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
|
* Constructor instantiates a new <code>Vector3d</code> that is a copy
|
||||||
* of the provided vector
|
* of the provided vector
|
||||||
* @param copy
|
* @param vector3f
|
||||||
* The Vector3d to copy
|
* The Vector3f to copy
|
||||||
*/
|
*/
|
||||||
public Vector3d(Vector3f vector3f) {
|
public Vector3d(Vector3f vector3f) {
|
||||||
this(vector3f.x, vector3f.y, vector3f.z);
|
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.
|
* the vector to take the cross product of with this.
|
||||||
* @param result
|
* @param result
|
||||||
* the vector to store the cross product 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) {
|
public Vector3d cross(Vector3d v, Vector3d result) {
|
||||||
return this.cross(v.x, v.y, v.z, 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.
|
* z component of the vector to take the cross product of with this.
|
||||||
* @param result
|
* @param result
|
||||||
* the vector to store the cross product 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) {
|
public Vector3d cross(double otherX, double otherY, double otherZ, Vector3d result) {
|
||||||
if (result == null) {
|
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
|
* internally, and returns a handle to this vector for easy chaining of
|
||||||
* calls. If the provided vector is null, null is returned.
|
* calls. If the provided vector is null, null is returned.
|
||||||
*
|
*
|
||||||
* @param vec
|
* @param vec
|
||||||
* the vector to mult to this vector.
|
* the vector to multiply by this vector.
|
||||||
* @return this
|
* @return this
|
||||||
*/
|
*/
|
||||||
public Vector3d multLocal(Vector3d vec) {
|
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
|
* internally, and returns a handle to this vector for easy chaining of
|
||||||
* calls. If the provided vector is null, null is returned.
|
* 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
|
* internally, and returns a handle to this vector for easy chaining of
|
||||||
* calls. If the provided vector is null, null is returned.
|
* 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
|
* internally, and returns a handle to this vector for easy chaining of
|
||||||
* calls. If the provided vector is null, null is returned.
|
* 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
|
* <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.
|
* the same hash code value.
|
||||||
* @return the hash code value of this vector.
|
* @return the hash code value of this vector.
|
||||||
*/
|
*/
|
||||||
|
@ -306,7 +306,7 @@ public class Face implements Comparator<Integer> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (BlenderFileException e) {
|
} 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;
|
warning = TriangulationWarning.UNKNOWN;
|
||||||
}
|
}
|
||||||
if(warning != TriangulationWarning.NONE) {
|
if(warning != TriangulationWarning.NONE) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2012 jMonkeyEngine
|
* Copyright (c) 2009-2019 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* 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
|
* @param meshStructure
|
||||||
* the structure containing the mesh data
|
* 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
|
* @throws BlenderFileException
|
||||||
* this exception is thrown when the blend file structure is somehow invalid or corrupted
|
* this exception is thrown when the blend file structure is somehow invalid or corrupted
|
||||||
*/
|
*/
|
||||||
@ -247,7 +247,7 @@ public class MeshHelper extends AbstractBlenderHelper {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} 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");
|
Structure facesData = (Structure) meshStructure.getFieldValue("fdata");
|
||||||
Pointer pFacesDataLayers = (Pointer) facesData.getFieldValue("layers");
|
Pointer pFacesDataLayers = (Pointer) facesData.getFieldValue("layers");
|
||||||
if (pFacesDataLayers.isNotNull()) {
|
if (pFacesDataLayers.isNotNull()) {
|
||||||
|
@ -198,8 +198,7 @@ public class TemporalMesh extends Geometry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param the
|
* @param edge the edge of the mesh
|
||||||
* edge of the mesh
|
|
||||||
* @return a list of faces that contain the given edge or an empty list
|
* @return a list of faces that contain the given edge or an empty list
|
||||||
*/
|
*/
|
||||||
public Collection<Face> getAdjacentFaces(Edge edge) {
|
public Collection<Face> getAdjacentFaces(Edge edge) {
|
||||||
@ -212,8 +211,7 @@ public class TemporalMesh extends Geometry {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param the
|
* @param index the index of the mesh
|
||||||
* index of the mesh
|
|
||||||
* @return a list of edges that contain the index
|
* @return a list of edges that contain the index
|
||||||
*/
|
*/
|
||||||
public Collection<Edge> getAdjacentEdges(Integer 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
|
* Tells if the given edge is a boundary edge. The boundary edge means that it belongs to a single
|
||||||
* face or to none.
|
* face or to none.
|
||||||
* @param the
|
* @param edge the edge of the mesh
|
||||||
* edge of the mesh
|
|
||||||
* @return <b>true</b> if the edge is a boundary one and <b>false</b> otherwise
|
* @return <b>true</b> if the edge is a boundary one and <b>false</b> otherwise
|
||||||
*/
|
*/
|
||||||
public boolean isBoundary(Edge edge) {
|
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
|
* The method rebuilds the mappings between faces and edges. Should be called after
|
||||||
* every major change of the temporal mesh done outside it.
|
* 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
|
* <p>
|
||||||
* when the mesh is modified.
|
* Note: I will remove this method soon and cause the mappings to be done
|
||||||
|
* automatically when the mesh is modified.
|
||||||
*/
|
*/
|
||||||
public void rebuildIndexesMappings() {
|
public void rebuildIndexesMappings() {
|
||||||
indexToEdgeMapping.clear();
|
indexToEdgeMapping.clear();
|
||||||
|
@ -47,7 +47,7 @@ public class SubdivisionSurfaceModifier extends Modifier {
|
|||||||
private Set<Integer> verticesOnOriginalEdges = new HashSet<Integer>();
|
private Set<Integer> verticesOnOriginalEdges = new HashSet<Integer>();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor loads all neccessary modifier data.
|
* Constructor loads all necessary modifier data.
|
||||||
* @param modifierStructure
|
* @param modifierStructure
|
||||||
* the modifier structure
|
* the modifier structure
|
||||||
* @param blenderContext
|
* @param blenderContext
|
||||||
@ -193,7 +193,7 @@ public class SubdivisionSurfaceModifier extends Modifier {
|
|||||||
// moving the vertex
|
// moving the vertex
|
||||||
v.addLocal(t);
|
v.addLocal(t);
|
||||||
|
|
||||||
// applying crease weight if neccessary
|
// applying crease weight if necessary
|
||||||
CreasePoint creasePoint = creasePoints.get(i);
|
CreasePoint creasePoint = creasePoints.get(i);
|
||||||
if (creasePoint.getTarget() != null && creasePoint.getWeight() != 0) {
|
if (creasePoint.getTarget() != null && creasePoint.getWeight() != 0) {
|
||||||
t = creasePoint.getTarget().subtractLocal(v).multLocal(creasePoint.getWeight());
|
t = creasePoint.getTarget().subtractLocal(v).multLocal(creasePoint.getWeight());
|
||||||
|
@ -206,7 +206,7 @@ public final class ImageUtils {
|
|||||||
N.z = 1;
|
N.z = 1;
|
||||||
N.divideLocal(den);
|
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));
|
bumpMap.setRGB(x, y, ImageUtils.vectorToColor(N.x, N.y, N.z));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -422,7 +422,7 @@ public final class ImageUtils {
|
|||||||
* pixel's X coordinate
|
* pixel's X coordinate
|
||||||
* @param y
|
* @param y
|
||||||
* pixel's Y coordinate
|
* 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) {
|
private static int getHeight(BufferedImage image, int x, int y) {
|
||||||
if (x < 0) {
|
if (x < 0) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2012 jMonkeyEngine
|
* Copyright (c) 2009-2018 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -315,7 +315,7 @@ public class TextureHelper extends AbstractBlenderHelper {
|
|||||||
* @param pos
|
* @param pos
|
||||||
* the relative position (value of range <0, 1> (both inclusive))
|
* the relative position (value of range <0, 1> (both inclusive))
|
||||||
* @param size
|
* @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)
|
* depth)
|
||||||
* @return the integer index of the pixel on the line of the specified width
|
* @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
|
* AssetManager that the blend file was loaded with. It returns a texture
|
||||||
* with a full assetKey that references the original texture so it later
|
* 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
|
* 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
|
* 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
|
* until the path can be found in the AssetManager. If the texture can not
|
||||||
|
@ -62,7 +62,7 @@ public class UserUVCollection {
|
|||||||
* the name of the UV set
|
* the name of the UV set
|
||||||
* @param vertexIndex
|
* @param vertexIndex
|
||||||
* the vertex index corresponds to the index in jme mesh and not the original one in blender
|
* 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) {
|
public Vector2f getUVForVertex(String uvSetName, int vertexIndex) {
|
||||||
return uvsMap.get(uvSetName).get(vertexIndex);
|
return uvsMap.get(uvSetName).get(vertexIndex);
|
||||||
|
@ -143,7 +143,8 @@ public class TextureBlenderAWT extends AbstractTextureBlender {
|
|||||||
dataArray.add(newData);
|
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) {
|
if (image.getMipMapSizes() != null) {
|
||||||
result.setMipMapSizes(image.getMipMapSizes().clone());
|
result.setMipMapSizes(image.getMipMapSizes().clone());
|
||||||
}
|
}
|
||||||
|
@ -104,7 +104,8 @@ task copyJmeAndroid(type: Copy) {
|
|||||||
into outputDir
|
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'
|
// args 'TARGET_PLATFORM=android-9'
|
||||||
// println "buildBulletNativeLib ndkWorkingPath: " + ndkWorkingPath
|
// println "buildBulletNativeLib ndkWorkingPath: " + ndkWorkingPath
|
||||||
// println "buildBulletNativeLib rootProject.ndkCommandPath: " + rootProject.ndkCommandPath
|
// println "buildBulletNativeLib rootProject.ndkCommandPath: " + rootProject.ndkCommandPath
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -54,12 +54,23 @@ LOCAL_C_INCLUDES := $(BULLET_PATH)/\
|
|||||||
$(BULLET_PATH)/vectormath/sse\
|
$(BULLET_PATH)/vectormath/sse\
|
||||||
$(BULLET_PATH)/vectormath/neon
|
$(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
|
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 += $(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)/%=%)
|
LOCAL_SRC_FILES := $(FILE_LIST:$(LOCAL_PATH)/%=%)
|
||||||
|
|
||||||
include $(BUILD_SHARED_LIBRARY)
|
include $(BUILD_SHARED_LIBRARY)
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
APP_OPTIM := release
|
APP_OPTIM := release
|
||||||
APP_ABI := all
|
APP_ABI := all
|
||||||
#APP_ABI := armeabi-v7a
|
APP_STL := stlport_static
|
||||||
|
# gnustl_static or stlport_static
|
||||||
APP_MODULES := bulletjme
|
APP_MODULES := bulletjme
|
||||||
|
APP_CFLAGS += -funroll-loops -Ofast
|
||||||
|
|
||||||
|
@ -11,6 +11,20 @@ if (!hasProperty('mainClass')) {
|
|||||||
dependencies {
|
dependencies {
|
||||||
compile project(':jme3-bullet')
|
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 {
|
model {
|
||||||
components {
|
components {
|
||||||
@ -27,13 +41,21 @@ model {
|
|||||||
source {
|
source {
|
||||||
srcDir 'src/native/cpp'
|
srcDir 'src/native/cpp'
|
||||||
srcDir bulletSrcPath
|
srcDir bulletSrcPath
|
||||||
|
exclude 'Bullet3Collision/**'
|
||||||
|
exclude 'Bullet3Dynamics/**'
|
||||||
|
exclude 'Bullet3Geometry/**'
|
||||||
exclude 'Bullet3OpenCL/**'
|
exclude 'Bullet3OpenCL/**'
|
||||||
|
exclude 'Bullet3Serialize/**'
|
||||||
include '**/*.cpp'
|
include '**/*.cpp'
|
||||||
}
|
}
|
||||||
exportedHeaders {
|
exportedHeaders {
|
||||||
srcDir 'src/native/cpp'
|
srcDir 'src/native/cpp'
|
||||||
srcDir bulletSrcPath
|
srcDir bulletSrcPath
|
||||||
|
exclude 'Bullet3Collision/**'
|
||||||
|
exclude 'Bullet3Dynamics/**'
|
||||||
|
exclude 'Bullet3Geometry/**'
|
||||||
exclude 'Bullet3OpenCL/**'
|
exclude 'Bullet3OpenCL/**'
|
||||||
|
exclude 'Bullet3Serialize/**'
|
||||||
include '**/*.h'
|
include '**/*.h'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -77,6 +99,7 @@ model {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cppCompiler.define('BT_NO_PROFILE')
|
||||||
if (toolChain in VisualCpp) {
|
if (toolChain in VisualCpp) {
|
||||||
cppCompiler.args "/I$javaHome\\include"
|
cppCompiler.args "/I$javaHome\\include"
|
||||||
} else{
|
} else{
|
||||||
@ -85,13 +108,13 @@ model {
|
|||||||
|
|
||||||
if (os == "osx") {
|
if (os == "osx") {
|
||||||
cppCompiler.args '-I', "$javaHome/include/darwin"
|
cppCompiler.args '-I', "$javaHome/include/darwin"
|
||||||
cppCompiler.args "-Ofast"
|
cppCompiler.args "-O3"
|
||||||
cppCompiler.args "-U_FORTIFY_SOURCE"
|
cppCompiler.args "-U_FORTIFY_SOURCE"
|
||||||
} else if (os == "linux") {
|
} else if (os == "linux") {
|
||||||
cppCompiler.args "-fvisibility=hidden"
|
cppCompiler.args "-fvisibility=hidden"
|
||||||
cppCompiler.args '-I', "$javaHome/include/linux"
|
cppCompiler.args '-I', "$javaHome/include/linux"
|
||||||
cppCompiler.args "-fPIC"
|
cppCompiler.args "-fPIC"
|
||||||
cppCompiler.args "-Ofast"
|
cppCompiler.args "-O3"
|
||||||
cppCompiler.args "-U_FORTIFY_SOURCE"
|
cppCompiler.args "-U_FORTIFY_SOURCE"
|
||||||
cppCompiler.args "-fpermissive"
|
cppCompiler.args "-fpermissive"
|
||||||
linker.args "-fvisibility=hidden"
|
linker.args "-fvisibility=hidden"
|
||||||
@ -104,7 +127,7 @@ model {
|
|||||||
}
|
}
|
||||||
cppCompiler.args "-fpermissive"
|
cppCompiler.args "-fpermissive"
|
||||||
cppCompiler.args "-static"
|
cppCompiler.args "-static"
|
||||||
cppCompiler.args "-Ofast"
|
cppCompiler.args "-O3"
|
||||||
cppCompiler.args "-U_FORTIFY_SOURCE"
|
cppCompiler.args "-U_FORTIFY_SOURCE"
|
||||||
linker.args "-static"
|
linker.args "-static"
|
||||||
linker.args "-Wl,--exclude-all-symbols"
|
linker.args "-Wl,--exclude-all-symbols"
|
||||||
@ -115,7 +138,10 @@ model {
|
|||||||
cppCompiler.define('WIN32')
|
cppCompiler.define('WIN32')
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.all { dependsOn unzipBulletIfNeeded }
|
tasks.all {
|
||||||
|
dependsOn unzipBulletIfNeeded
|
||||||
|
dependsOn ':jme3-bullet:generateNativeHeaders'
|
||||||
|
}
|
||||||
|
|
||||||
// Add output to jar file
|
// Add output to jar file
|
||||||
jar.into("native/${os}/${arch}") {
|
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 {
|
class MyDownload extends DefaultTask {
|
||||||
@Input
|
@Input
|
||||||
String sourceUrl
|
String sourceUrl
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -55,6 +55,18 @@ extern "C" {
|
|||||||
return reinterpret_cast<jlong>(shape);
|
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
|
* Class: com_jme3_bullet_collision_shapes_GImpactCollisionShape
|
||||||
* Method: finalizeNative
|
* Method: finalizeNative
|
||||||
@ -65,7 +77,7 @@ extern "C" {
|
|||||||
btTriangleIndexVertexArray* array = reinterpret_cast<btTriangleIndexVertexArray*> (meshId);
|
btTriangleIndexVertexArray* array = reinterpret_cast<btTriangleIndexVertexArray*> (meshId);
|
||||||
delete(array);
|
delete(array);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -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
|
|
@ -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
|
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2012 jMonkeyEngine
|
* Copyright (c) 2009-2019 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -60,6 +60,8 @@ extern "C" {
|
|||||||
|
|
||||||
shape->addPoint(vect);
|
shape->addPoint(vect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
shape->optimizeConvexHull();
|
||||||
|
|
||||||
return reinterpret_cast<jlong>(shape);
|
return reinterpret_cast<jlong>(shape);
|
||||||
}
|
}
|
||||||
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -85,7 +85,7 @@ extern "C" {
|
|||||||
env->ThrowNew(newExc, "The native object does not exist.");
|
env->ThrowNew(newExc, "The native object does not exist.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return joint->getMotorTargetVelosity();
|
return joint->getMotorTargetVelocity();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -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
|
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2012 jMonkeyEngine
|
* Copyright (c) 2009-2018 jMonkeyEngine
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -56,6 +56,22 @@ extern "C" {
|
|||||||
return joint->getAppliedImpulse();
|
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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -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
|
|
@ -111,13 +111,13 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_Point2PointJoint_getImpulseClamp
|
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_Point2PointJoint_getImpulseClamp
|
||||||
(JNIEnv * env, jobject object, jlong jointId) {
|
(JNIEnv * env, jobject object, jlong jointId) {
|
||||||
btPoint2PointConstraint* joint = reinterpret_cast<btPoint2PointConstraint*>(jointId);
|
btPoint2PointConstraint* joint = reinterpret_cast<btPoint2PointConstraint*> (jointId);
|
||||||
if (joint == NULL) {
|
if (joint == NULL) {
|
||||||
jclass newExc = env->FindClass("java/lang/NullPointerException");
|
jclass newExc = env->FindClass("java/lang/NullPointerException");
|
||||||
env->ThrowNew(newExc, "The native object does not exist.");
|
env->ThrowNew(newExc, "The native object does not exist.");
|
||||||
return 0;
|
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
|
JNIEXPORT jfloat JNICALL Java_com_jme3_bullet_joints_Point2PointJoint_getTau
|
||||||
(JNIEnv * env, jobject object, jlong jointId) {
|
(JNIEnv * env, jobject object, jlong jointId) {
|
||||||
btPoint2PointConstraint* joint = reinterpret_cast<btPoint2PointConstraint*>(jointId);
|
btPoint2PointConstraint* joint = reinterpret_cast<btPoint2PointConstraint*> (jointId);
|
||||||
if (joint == NULL) {
|
if (joint == NULL) {
|
||||||
jclass newExc = env->FindClass("java/lang/NullPointerException");
|
jclass newExc = env->FindClass("java/lang/NullPointerException");
|
||||||
env->ThrowNew(newExc, "The native object does not exist.");
|
env->ThrowNew(newExc, "The native object does not exist.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return joint->m_setting.m_damping;
|
return joint->m_setting.m_tau;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -141,9 +141,9 @@ extern "C" {
|
|||||||
* Method: getLimitSoftness
|
* Method: getLimitSoftness
|
||||||
* Signature: (J)F
|
* 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) {
|
(JNIEnv *env, jobject object, jlong motorId) {
|
||||||
btTranslationalLimitMotor* motor = reinterpret_cast<btTranslationalLimitMotor*>(motorId);
|
btTranslationalLimitMotor* motor = reinterpret_cast<btTranslationalLimitMotor*> (motorId);
|
||||||
if (motor == NULL) {
|
if (motor == NULL) {
|
||||||
jclass newExc = env->FindClass("java/lang/NullPointerException");
|
jclass newExc = env->FindClass("java/lang/NullPointerException");
|
||||||
env->ThrowNew(newExc, "The native object does not exist.");
|
env->ThrowNew(newExc, "The native object does not exist.");
|
||||||
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -52,9 +52,7 @@ extern "C" {
|
|||||||
btMotionState* motionState = reinterpret_cast<btMotionState*>(motionstatId);
|
btMotionState* motionState = reinterpret_cast<btMotionState*>(motionstatId);
|
||||||
btCollisionShape* shape = reinterpret_cast<btCollisionShape*>(shapeId);
|
btCollisionShape* shape = reinterpret_cast<btCollisionShape*>(shapeId);
|
||||||
btVector3 localInertia = btVector3();
|
btVector3 localInertia = btVector3();
|
||||||
if(mass > 0){
|
shape->calculateLocalInertia(mass, localInertia);
|
||||||
shape->calculateLocalInertia(mass, localInertia);
|
|
||||||
}
|
|
||||||
btRigidBody* body = new btRigidBody(mass, motionState, shape, localInertia);
|
btRigidBody* body = new btRigidBody(mass, motionState, shape, localInertia);
|
||||||
body->setUserPointer(NULL);
|
body->setUserPointer(NULL);
|
||||||
return reinterpret_cast<jlong>(body);
|
return reinterpret_cast<jlong>(body);
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user