Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
22105902
Commit
22105902
authored
May 24, 2017
by
Tobias Meuser
Browse files
Fixed display bug for very large scenarios
parent
fbfd7010
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/movement/VehicleMovementModel.java
View file @
22105902
...
@@ -289,7 +289,7 @@ public class VehicleMovementModel implements MovementModel, EventHandler, Future
...
@@ -289,7 +289,7 @@ public class VehicleMovementModel implements MovementModel, EventHandler, Future
SimLocationActuator
component
=
requestSimActuator
(
vehicle
);
SimLocationActuator
component
=
requestSimActuator
(
vehicle
);
if
(
scenarioHeight
!=
-
1
)
{
if
(
scenarioHeight
!=
-
1
)
{
component
.
updateCurrentLocation
(
new
PositionVector
(
position
.
getX
()
/
SCALING_FACTOR
,
scenarioHeight
-
position
.
getY
()
/
SCALING_FACTOR
));
component
.
updateCurrentLocation
(
new
PositionVector
(
position
.
getX
()
/
SCALING_FACTOR
,
Math
.
min
(
scenarioHeight
,
height
)
-
position
.
getY
()
/
SCALING_FACTOR
));
}
else
{
}
else
{
// This would be vertically mirrored
// This would be vertically mirrored
component
.
updateCurrentLocation
(
new
PositionVector
(
position
.
getX
()
/
SCALING_FACTOR
,
position
.
getY
()
/
SCALING_FACTOR
));
component
.
updateCurrentLocation
(
new
PositionVector
(
position
.
getX
()
/
SCALING_FACTOR
,
position
.
getY
()
/
SCALING_FACTOR
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment