Adding @Override to cloneForSpatial() methods in bullet lib.
This commit is contained in:
parent
10947e8b50
commit
20f62cbd64
@ -663,6 +663,7 @@ public class BetterCharacterControl extends AbstractPhysicsControl implements Ph
|
|||||||
rigidBody.setUserObject(null);
|
rigidBody.setUserObject(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Control cloneForSpatial(Spatial spatial) {
|
public Control cloneForSpatial(Spatial spatial) {
|
||||||
BetterCharacterControl control = new BetterCharacterControl(radius, height, mass);
|
BetterCharacterControl control = new BetterCharacterControl(radius, height, mass);
|
||||||
control.setJumpForce(jumpForce);
|
control.setJumpForce(jumpForce);
|
||||||
|
@ -87,6 +87,7 @@ public class CharacterControl extends PhysicsCharacter implements PhysicsControl
|
|||||||
return spatial.getWorldTranslation();
|
return spatial.getWorldTranslation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Control cloneForSpatial(Spatial spatial) {
|
public Control cloneForSpatial(Spatial spatial) {
|
||||||
CharacterControl control = new CharacterControl(collisionShape, stepHeight);
|
CharacterControl control = new CharacterControl(collisionShape, stepHeight);
|
||||||
control.setCcdMotionThreshold(getCcdMotionThreshold());
|
control.setCcdMotionThreshold(getCcdMotionThreshold());
|
||||||
|
@ -93,6 +93,7 @@ public class GhostControl extends PhysicsGhostObject implements PhysicsControl {
|
|||||||
return spatial.getWorldRotation();
|
return spatial.getWorldRotation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Control cloneForSpatial(Spatial spatial) {
|
public Control cloneForSpatial(Spatial spatial) {
|
||||||
GhostControl control = new GhostControl(collisionShape);
|
GhostControl control = new GhostControl(collisionShape);
|
||||||
control.setCcdMotionThreshold(getCcdMotionThreshold());
|
control.setCcdMotionThreshold(getCcdMotionThreshold());
|
||||||
|
@ -910,6 +910,7 @@ public class KinematicRagdollControl extends AbstractPhysicsControl implements P
|
|||||||
public void render(RenderManager rm, ViewPort vp) {
|
public void render(RenderManager rm, ViewPort vp) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Control cloneForSpatial(Spatial spatial) {
|
public Control cloneForSpatial(Spatial spatial) {
|
||||||
KinematicRagdollControl control = new KinematicRagdollControl(preset, weightThreshold);
|
KinematicRagdollControl control = new KinematicRagdollControl(preset, weightThreshold);
|
||||||
control.setMode(mode);
|
control.setMode(mode);
|
||||||
|
@ -89,6 +89,7 @@ public class RigidBodyControl extends PhysicsRigidBody implements PhysicsControl
|
|||||||
super(shape, mass);
|
super(shape, mass);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Control cloneForSpatial(Spatial spatial) {
|
public Control cloneForSpatial(Spatial spatial) {
|
||||||
RigidBodyControl control = new RigidBodyControl(collisionShape, mass);
|
RigidBodyControl control = new RigidBodyControl(collisionShape, mass);
|
||||||
control.setAngularFactor(getAngularFactor());
|
control.setAngularFactor(getAngularFactor());
|
||||||
|
@ -106,6 +106,7 @@ public class VehicleControl extends PhysicsVehicle implements PhysicsControl {
|
|||||||
return spatial.getWorldRotation();
|
return spatial.getWorldRotation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public Control cloneForSpatial(Spatial spatial) {
|
public Control cloneForSpatial(Spatial spatial) {
|
||||||
VehicleControl control = new VehicleControl(collisionShape, mass);
|
VehicleControl control = new VehicleControl(collisionShape, mass);
|
||||||
control.setAngularFactor(getAngularFactor());
|
control.setAngularFactor(getAngularFactor());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user