Skip to content

Commit 5c2144f

Browse files
committed
deprecate jbullet bridge apis
1 parent e356496 commit 5c2144f

7 files changed

Lines changed: 50 additions & 4 deletions

File tree

jme3-jbullet/src/main/java/com/jme3/bullet/collision/shapes/CollisionShape.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ protected CollisionShape() {
6464
*
6565
* @param mass the desired mass for the body
6666
* @param vector storage for the result (not null, modified)
67+
* @deprecated This exposes the JBullet backend type directly.
6768
*/
69+
@Deprecated
6870
public void calculateLocalInertia(float mass, javax.vecmath.Vector3f vector) {
6971
if (cShape == null) {
7072
return;
@@ -80,7 +82,9 @@ public void calculateLocalInertia(float mass, javax.vecmath.Vector3f vector) {
8082
* used internally
8183
*
8284
* @return the pre-existing instance
85+
* @deprecated This exposes the JBullet backend type directly.
8386
*/
87+
@Deprecated
8488
public com.bulletphysics.collision.shapes.CollisionShape getCShape() {
8589
return cShape;
8690
}
@@ -89,7 +93,9 @@ public com.bulletphysics.collision.shapes.CollisionShape getCShape() {
8993
* used internally
9094
*
9195
* @param cShape the shape to use (alias created)
96+
* @deprecated This exposes the JBullet backend type directly.
9297
*/
98+
@Deprecated
9399
public void setCShape(com.bulletphysics.collision.shapes.CollisionShape cShape) {
94100
this.cShape = cShape;
95101
}

jme3-jbullet/src/main/java/com/jme3/bullet/joints/motors/RotationalLimitMotor.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,28 @@
3232
package com.jme3.bullet.joints.motors;
3333

3434
/**
35+
* Legacy wrapper around the JBullet rotational limit motor.
3536
*
37+
* @deprecated This exposes the JBullet backend type directly.
3638
* @author normenhansen
3739
*/
40+
@Deprecated
3841
public class RotationalLimitMotor {
3942

4043
private com.bulletphysics.dynamics.constraintsolver.RotationalLimitMotor motor;
4144

45+
/**
46+
* @deprecated This exposes the JBullet backend type directly.
47+
*/
48+
@Deprecated
4249
public RotationalLimitMotor(com.bulletphysics.dynamics.constraintsolver.RotationalLimitMotor motor) {
4350
this.motor = motor;
4451
}
4552

53+
/**
54+
* @deprecated This exposes the JBullet backend type directly.
55+
*/
56+
@Deprecated
4657
public com.bulletphysics.dynamics.constraintsolver.RotationalLimitMotor getMotor() {
4758
return motor;
4859
}

jme3-jbullet/src/main/java/com/jme3/bullet/joints/motors/TranslationalLimitMotor.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,28 @@
3535
import com.jme3.math.Vector3f;
3636

3737
/**
38+
* Legacy wrapper around the JBullet translational limit motor.
3839
*
40+
* @deprecated This exposes the JBullet backend type directly.
3941
* @author normenhansen
4042
*/
43+
@Deprecated
4144
public class TranslationalLimitMotor {
4245

4346
private com.bulletphysics.dynamics.constraintsolver.TranslationalLimitMotor motor;
4447

48+
/**
49+
* @deprecated This exposes the JBullet backend type directly.
50+
*/
51+
@Deprecated
4552
public TranslationalLimitMotor(com.bulletphysics.dynamics.constraintsolver.TranslationalLimitMotor motor) {
4653
this.motor = motor;
4754
}
4855

56+
/**
57+
* @deprecated This exposes the JBullet backend type directly.
58+
*/
59+
@Deprecated
4960
public com.bulletphysics.dynamics.constraintsolver.TranslationalLimitMotor getMotor() {
5061
return motor;
5162
}

jme3-jbullet/src/main/java/com/jme3/bullet/objects/VehicleWheel.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,18 @@ public void applyWheelTransform() {
114114
}
115115
}
116116

117+
/**
118+
* @deprecated This exposes the JBullet backend type directly.
119+
*/
120+
@Deprecated
117121
public com.bulletphysics.dynamics.vehicle.WheelInfo getWheelInfo() {
118122
return wheelInfo;
119123
}
120124

125+
/**
126+
* @deprecated This exposes the JBullet backend type directly.
127+
*/
128+
@Deprecated
121129
public void setWheelInfo(com.bulletphysics.dynamics.vehicle.WheelInfo wheelInfo) {
122130
this.wheelInfo = wheelInfo;
123131
applyInfo();

jme3-jbullet/src/main/java/com/jme3/bullet/package-info.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3131
*/
3232
/**
33-
* central classes of the physics system
33+
* Central classes of the physics system.
34+
*
35+
* <p>The public physics API remains in place for compatibility while the
36+
* JBullet backend is being phased out. The JBullet-specific escape hatches are
37+
* deprecated and should not be used for new code.</p>
3438
*/
3539
package com.jme3.bullet;

jme3-jbullet/src/main/java/com/jme3/bullet/util/Converter.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,13 @@
4242
import java.nio.FloatBuffer;
4343

4444
/**
45-
* Nice convenience methods for conversion between javax.vecmath and com.jme3.math
46-
* Objects, also some jme to jbullet mesh conversion.
45+
* Legacy convenience methods for conversion between javax.vecmath and
46+
* com.jme3.math objects, plus a few JBullet bridge helpers.
47+
*
48+
* @deprecated This utility exposes JBullet backend types directly.
4749
* @author normenhansen
4850
*/
51+
@Deprecated
4952
public class Converter {
5053

5154
private Converter() {

jme3-jbullet/src/main/java/com/jme3/bullet/util/package-info.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3131
*/
3232
/**
33-
* utility classes related to Bullet physics
33+
* Utility classes related to Bullet physics.
34+
*
35+
* <p>{@link com.jme3.bullet.util.Converter} is deprecated because it exposes
36+
* backend-specific JBullet types.</p>
3437
*/
3538
package com.jme3.bullet.util;

0 commit comments

Comments
 (0)