get motor from MotorMount with non-deprecated method
This commit is contained in:
parent
d7b46d6058
commit
6f72662ea8
@ -163,7 +163,7 @@ public abstract class RocketRenderer {
|
|||||||
Iterator<MotorMount> iterator = configuration.motorIterator();
|
Iterator<MotorMount> iterator = configuration.motorIterator();
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
MotorMount mount = iterator.next();
|
MotorMount mount = iterator.next();
|
||||||
Motor motor = mount.getMotor(motorID);
|
Motor motor = mount.getMotorConfiguration().get(motorID).getMotor();
|
||||||
double length = motor.getLength();
|
double length = motor.getLength();
|
||||||
|
|
||||||
Coordinate[] position = ((RocketComponent) mount).toAbsolute(new Coordinate(((RocketComponent) mount)
|
Coordinate[] position = ((RocketComponent) mount).toAbsolute(new Coordinate(((RocketComponent) mount)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user