protect 52 no-arg constructors in the jme3-bullet/jme3-jbullet libraries (#1229)
This commit is contained in:
parent
9d2d393fc3
commit
75001d8abd
@ -99,7 +99,7 @@ public class BoneLink extends PhysicsLink {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public BoneLink() {
|
protected BoneLink() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -130,7 +130,7 @@ abstract public class PhysicsLink
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public PhysicsLink() {
|
protected PhysicsLink() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -107,7 +107,7 @@ public class TorsoLink extends PhysicsLink {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public TorsoLink() {
|
protected TorsoLink() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -65,7 +65,7 @@ public class ChildCollisionShape implements Savable {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public ChildCollisionShape() {
|
protected ChildCollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -136,7 +136,7 @@ public class BetterCharacterControl extends AbstractPhysicsControl implements Ph
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public BetterCharacterControl() {
|
protected BetterCharacterControl() {
|
||||||
jumpForce = new Vector3f();
|
jumpForce = new Vector3f();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -86,7 +86,7 @@ public class GhostControl extends PhysicsGhostObject implements PhysicsControl,
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public GhostControl() {
|
protected GhostControl() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -89,7 +89,7 @@ public class RigidBodyControl extends PhysicsRigidBody implements PhysicsControl
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public RigidBodyControl() {
|
protected RigidBodyControl() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -80,7 +80,7 @@ public class VehicleControl extends PhysicsVehicle implements PhysicsControl, Jm
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public VehicleControl() {
|
protected VehicleControl() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -57,7 +57,7 @@ public class BoxCollisionShape extends CollisionShape {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public BoxCollisionShape() {
|
protected BoxCollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -64,7 +64,7 @@ public class CapsuleCollisionShape extends CollisionShape{
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public CapsuleCollisionShape() {
|
protected CapsuleCollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -65,7 +65,7 @@ public class ConeCollisionShape extends CollisionShape {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public ConeCollisionShape() {
|
protected ConeCollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -62,7 +62,7 @@ public class CylinderCollisionShape extends CollisionShape {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public CylinderCollisionShape() {
|
protected CylinderCollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -68,7 +68,7 @@ public class GImpactCollisionShape extends CollisionShape {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public GImpactCollisionShape() {
|
protected GImpactCollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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 HeightfieldCollisionShape extends CollisionShape {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public HeightfieldCollisionShape() {
|
protected HeightfieldCollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -56,7 +56,7 @@ public class HullCollisionShape extends CollisionShape {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public HullCollisionShape() {
|
protected HullCollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -75,7 +75,7 @@ public class MeshCollisionShape extends CollisionShape {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public MeshCollisionShape() {
|
protected MeshCollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -56,7 +56,7 @@ public class PlaneCollisionShape extends CollisionShape{
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public PlaneCollisionShape() {
|
protected PlaneCollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -57,7 +57,7 @@ public class SimplexCollisionShape extends CollisionShape {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public SimplexCollisionShape() {
|
protected SimplexCollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -57,7 +57,7 @@ public class SphereCollisionShape extends CollisionShape {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public SphereCollisionShape() {
|
protected SphereCollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -64,7 +64,7 @@ public class ConeJoint extends PhysicsJoint {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public ConeJoint() {
|
protected ConeJoint() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -80,7 +80,7 @@ public class HingeJoint extends PhysicsJoint {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public HingeJoint() {
|
protected HingeJoint() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -76,7 +76,7 @@ public abstract class PhysicsJoint implements Savable {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public PhysicsJoint() {
|
protected PhysicsJoint() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -208,8 +208,8 @@ public abstract class PhysicsJoint implements Savable {
|
|||||||
*/
|
*/
|
||||||
public void read(JmeImporter im) throws IOException {
|
public void read(JmeImporter im) throws IOException {
|
||||||
InputCapsule capsule = im.getCapsule(this);
|
InputCapsule capsule = im.getCapsule(this);
|
||||||
this.nodeA = ((PhysicsRigidBody) capsule.readSavable("nodeA", new PhysicsRigidBody()));
|
this.nodeA = ((PhysicsRigidBody) capsule.readSavable("nodeA", null));
|
||||||
this.nodeB = (PhysicsRigidBody) capsule.readSavable("nodeB", new PhysicsRigidBody());
|
this.nodeB = (PhysicsRigidBody) capsule.readSavable("nodeB", null);
|
||||||
this.pivotA = (Vector3f) capsule.readSavable("pivotA", new Vector3f());
|
this.pivotA = (Vector3f) capsule.readSavable("pivotA", new Vector3f());
|
||||||
this.pivotB = (Vector3f) capsule.readSavable("pivotB", new Vector3f());
|
this.pivotB = (Vector3f) capsule.readSavable("pivotB", new Vector3f());
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -57,7 +57,7 @@ public class Point2PointJoint extends PhysicsJoint {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public Point2PointJoint() {
|
protected Point2PointJoint() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -99,7 +99,7 @@ public class SixDofJoint extends PhysicsJoint {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public SixDofJoint() {
|
protected SixDofJoint() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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,7 +60,7 @@ public class SliderJoint extends PhysicsJoint {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public SliderJoint() {
|
protected SliderJoint() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -71,7 +71,7 @@ public class PhysicsCharacter extends PhysicsCollisionObject {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public PhysicsCharacter() {
|
protected PhysicsCharacter() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -68,7 +68,7 @@ public class PhysicsGhostObject extends PhysicsCollisionObject {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public PhysicsGhostObject() {
|
protected PhysicsGhostObject() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -81,7 +81,7 @@ public class PhysicsRigidBody extends PhysicsCollisionObject {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public PhysicsRigidBody() {
|
protected PhysicsRigidBody() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -90,7 +90,7 @@ public class PhysicsVehicle extends PhysicsRigidBody {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public PhysicsVehicle() {
|
protected PhysicsVehicle() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -136,7 +136,7 @@ public class VehicleWheel implements Savable {
|
|||||||
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
* No-argument constructor needed by SavableClassUtil. Do not invoke
|
||||||
* directly!
|
* directly!
|
||||||
*/
|
*/
|
||||||
public VehicleWheel() {
|
protected VehicleWheel() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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
|
||||||
@ -48,7 +48,7 @@ public class BoxCollisionShape extends CollisionShape {
|
|||||||
|
|
||||||
private Vector3f halfExtents;
|
private Vector3f halfExtents;
|
||||||
|
|
||||||
public BoxCollisionShape() {
|
protected BoxCollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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 CapsuleCollisionShape extends CollisionShape{
|
|||||||
protected float radius,height;
|
protected float radius,height;
|
||||||
protected int axis;
|
protected int axis;
|
||||||
|
|
||||||
public CapsuleCollisionShape() {
|
protected CapsuleCollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -56,7 +56,7 @@ public abstract class CollisionShape implements Savable {
|
|||||||
*/
|
*/
|
||||||
protected float margin = defaultMargin;
|
protected float margin = defaultMargin;
|
||||||
|
|
||||||
public CollisionShape() {
|
protected CollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -56,7 +56,7 @@ public class ConeCollisionShape extends CollisionShape {
|
|||||||
/**
|
/**
|
||||||
* Serialization only, do not use.
|
* Serialization only, do not use.
|
||||||
*/
|
*/
|
||||||
public ConeCollisionShape() {
|
protected ConeCollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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
|
||||||
@ -53,7 +53,7 @@ public class CylinderCollisionShape extends CollisionShape {
|
|||||||
protected Vector3f halfExtents;
|
protected Vector3f halfExtents;
|
||||||
protected int axis;
|
protected int axis;
|
||||||
|
|
||||||
public CylinderCollisionShape() {
|
protected CylinderCollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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
|
||||||
@ -55,7 +55,7 @@ public class GImpactCollisionShape extends CollisionShape{
|
|||||||
protected ByteBuffer triangleIndexBase, vertexBase;
|
protected ByteBuffer triangleIndexBase, vertexBase;
|
||||||
protected IndexedMesh bulletMesh;
|
protected IndexedMesh bulletMesh;
|
||||||
|
|
||||||
public GImpactCollisionShape() {
|
protected GImpactCollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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
|
||||||
@ -65,7 +65,7 @@ public class HeightfieldCollisionShape extends CollisionShape {
|
|||||||
protected int upAxis;
|
protected int upAxis;
|
||||||
protected boolean flipQuadEdges;
|
protected boolean flipQuadEdges;
|
||||||
|
|
||||||
public HeightfieldCollisionShape() {
|
protected HeightfieldCollisionShape() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
@ -48,7 +48,7 @@ public class HullCollisionShape extends CollisionShape {
|
|||||||
|
|
||||||
private float[] points;
|
private float[] points;
|
||||||
|
|
||||||
public HullCollisionShape() {
|
protected HullCollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public HullCollisionShape(Mesh mesh) {
|
public HullCollisionShape(Mesh mesh) {
|
||||||
|
@ -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
|
||||||
@ -54,7 +54,7 @@ public class MeshCollisionShape extends CollisionShape {
|
|||||||
protected ByteBuffer triangleIndexBase, vertexBase;
|
protected ByteBuffer triangleIndexBase, vertexBase;
|
||||||
protected IndexedMesh bulletMesh;
|
protected IndexedMesh bulletMesh;
|
||||||
|
|
||||||
public MeshCollisionShape() {
|
protected MeshCollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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
|
||||||
@ -47,7 +47,7 @@ import java.io.IOException;
|
|||||||
public class PlaneCollisionShape extends CollisionShape{
|
public class PlaneCollisionShape extends CollisionShape{
|
||||||
private Plane plane;
|
private Plane plane;
|
||||||
|
|
||||||
public PlaneCollisionShape() {
|
protected PlaneCollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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
|
||||||
@ -47,7 +47,7 @@ public class SphereCollisionShape extends CollisionShape {
|
|||||||
|
|
||||||
protected float radius;
|
protected float radius;
|
||||||
|
|
||||||
public SphereCollisionShape() {
|
protected SphereCollisionShape() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -58,7 +58,7 @@ public class ConeJoint extends PhysicsJoint {
|
|||||||
protected float twistSpan = 1e30f;
|
protected float twistSpan = 1e30f;
|
||||||
protected boolean angularOnly = false;
|
protected boolean angularOnly = false;
|
||||||
|
|
||||||
public ConeJoint() {
|
protected ConeJoint() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -58,7 +58,7 @@ public class HingeJoint extends PhysicsJoint {
|
|||||||
protected float relaxationFactor = 1.0f;
|
protected float relaxationFactor = 1.0f;
|
||||||
protected float limitSoftness = 0.9f;
|
protected float limitSoftness = 0.9f;
|
||||||
|
|
||||||
public HingeJoint() {
|
protected HingeJoint() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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
|
||||||
@ -50,7 +50,7 @@ public abstract class PhysicsJoint implements Savable {
|
|||||||
protected Vector3f pivotB;
|
protected Vector3f pivotB;
|
||||||
protected boolean collisionBetweenLinkedBodys = true;
|
protected boolean collisionBetweenLinkedBodys = true;
|
||||||
|
|
||||||
public PhysicsJoint() {
|
protected PhysicsJoint() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -127,8 +127,8 @@ public abstract class PhysicsJoint implements Savable {
|
|||||||
|
|
||||||
public void read(JmeImporter im) throws IOException {
|
public void read(JmeImporter im) throws IOException {
|
||||||
InputCapsule capsule = im.getCapsule(this);
|
InputCapsule capsule = im.getCapsule(this);
|
||||||
this.nodeA = ((PhysicsRigidBody) capsule.readSavable("nodeA", new PhysicsRigidBody()));
|
this.nodeA = ((PhysicsRigidBody) capsule.readSavable("nodeA", null));
|
||||||
this.nodeB = (PhysicsRigidBody) capsule.readSavable("nodeB", new PhysicsRigidBody());
|
this.nodeB = (PhysicsRigidBody) capsule.readSavable("nodeB", null);
|
||||||
this.pivotA = (Vector3f) capsule.readSavable("pivotA", new Vector3f());
|
this.pivotA = (Vector3f) capsule.readSavable("pivotA", new Vector3f());
|
||||||
this.pivotB = (Vector3f) capsule.readSavable("pivotB", new Vector3f());
|
this.pivotB = (Vector3f) capsule.readSavable("pivotB", new Vector3f());
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
@ -50,7 +50,7 @@ import java.io.IOException;
|
|||||||
*/
|
*/
|
||||||
public class Point2PointJoint extends PhysicsJoint {
|
public class Point2PointJoint extends PhysicsJoint {
|
||||||
|
|
||||||
public Point2PointJoint() {
|
protected Point2PointJoint() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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
|
||||||
@ -68,7 +68,7 @@ public class SixDofJoint extends PhysicsJoint {
|
|||||||
private Vector3f linearUpperLimit = new Vector3f(Vector3f.POSITIVE_INFINITY);
|
private Vector3f linearUpperLimit = new Vector3f(Vector3f.POSITIVE_INFINITY);
|
||||||
private Vector3f linearLowerLimit = new Vector3f(Vector3f.NEGATIVE_INFINITY);
|
private Vector3f linearLowerLimit = new Vector3f(Vector3f.NEGATIVE_INFINITY);
|
||||||
|
|
||||||
public SixDofJoint() {
|
protected SixDofJoint() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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
|
||||||
@ -52,7 +52,7 @@ public class SliderJoint extends PhysicsJoint {
|
|||||||
protected Matrix3f rotA, rotB;
|
protected Matrix3f rotA, rotB;
|
||||||
protected boolean useLinearReferenceFrameA;
|
protected boolean useLinearReferenceFrameA;
|
||||||
|
|
||||||
public SliderJoint() {
|
protected SliderJoint() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -68,7 +68,7 @@ public class PhysicsCharacter extends PhysicsCollisionObject {
|
|||||||
private com.jme3.math.Transform physicsLocation = new com.jme3.math.Transform();
|
private com.jme3.math.Transform physicsLocation = new com.jme3.math.Transform();
|
||||||
private javax.vecmath.Vector3f tempVec = new javax.vecmath.Vector3f();
|
private javax.vecmath.Vector3f tempVec = new javax.vecmath.Vector3f();
|
||||||
|
|
||||||
public PhysicsCharacter() {
|
protected PhysicsCharacter() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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
|
||||||
@ -68,7 +68,7 @@ public class PhysicsGhostObject extends PhysicsCollisionObject {
|
|||||||
protected javax.vecmath.Quat4f tempRot = new javax.vecmath.Quat4f();
|
protected javax.vecmath.Quat4f tempRot = new javax.vecmath.Quat4f();
|
||||||
private List<PhysicsCollisionObject> overlappingObjects = new LinkedList<PhysicsCollisionObject>();
|
private List<PhysicsCollisionObject> overlappingObjects = new LinkedList<PhysicsCollisionObject>();
|
||||||
|
|
||||||
public PhysicsGhostObject() {
|
protected PhysicsGhostObject() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public PhysicsGhostObject(CollisionShape shape) {
|
public PhysicsGhostObject(CollisionShape shape) {
|
||||||
|
@ -72,7 +72,7 @@ public class PhysicsRigidBody extends PhysicsCollisionObject {
|
|||||||
protected javax.vecmath.Vector3f localInertia = new javax.vecmath.Vector3f();
|
protected javax.vecmath.Vector3f localInertia = new javax.vecmath.Vector3f();
|
||||||
protected ArrayList<PhysicsJoint> joints = new ArrayList<PhysicsJoint>();
|
protected ArrayList<PhysicsJoint> joints = new ArrayList<PhysicsJoint>();
|
||||||
|
|
||||||
public PhysicsRigidBody() {
|
protected PhysicsRigidBody() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -67,7 +67,7 @@ public class PhysicsVehicle extends PhysicsRigidBody {
|
|||||||
protected ArrayList<VehicleWheel> wheels = new ArrayList<VehicleWheel>();
|
protected ArrayList<VehicleWheel> wheels = new ArrayList<VehicleWheel>();
|
||||||
protected PhysicsSpace physicsSpace;
|
protected PhysicsSpace physicsSpace;
|
||||||
|
|
||||||
public PhysicsVehicle() {
|
protected PhysicsVehicle() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public PhysicsVehicle(CollisionShape shape) {
|
public PhysicsVehicle(CollisionShape shape) {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2009-2018 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
|
||||||
@ -67,7 +67,7 @@ public class VehicleWheel implements Savable {
|
|||||||
protected final Quaternion tmp_inverseWorldRotation = new Quaternion();
|
protected final Quaternion tmp_inverseWorldRotation = new Quaternion();
|
||||||
private boolean applyLocal = false;
|
private boolean applyLocal = false;
|
||||||
|
|
||||||
public VehicleWheel() {
|
protected VehicleWheel() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public VehicleWheel(Spatial spat, Vector3f location, Vector3f direction, Vector3f axle,
|
public VehicleWheel(Spatial spat, Vector3f location, Vector3f direction, Vector3f axle,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user