.test
This commit is contained in:
parent
555e3f0cce
commit
a39e464bfc
1 changed files with 2 additions and 2 deletions
|
@ -81,7 +81,7 @@ public class TileMotor extends TileElectrical implements IRotatable, INodeProvid
|
|||
if (receive > 0)
|
||||
{
|
||||
double percentageUsed = receive / power;
|
||||
node.apply(-node.getTorque() * percentageUsed, -node.getAngularVelocity() * percentageUsed);
|
||||
node.apply(this, -node.getTorque() * percentageUsed, -node.getAngularVelocity() * percentageUsed);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -111,7 +111,7 @@ public class TileMotor extends TileElectrical implements IRotatable, INodeProvid
|
|||
if (currentVelo != 0)
|
||||
setAngularVelocity = Math.min(+setAngularVelocity, maxAngularVelocity) * (node.getAngularVelocity() / currentVelo);
|
||||
|
||||
node.apply(setTorque - node.getTorque(), setAngularVelocity - node.getAngularVelocity());
|
||||
node.apply(this, setTorque - node.getTorque(), setAngularVelocity - node.getAngularVelocity());
|
||||
energy.extractEnergy((long) Math.abs(setTorque * setAngularVelocity), true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue