Closed meganrm closed 6 months ago
Status | Category | Percentage | Covered / Total |
---|---|---|---|
π΄ | Statements | 40.48% | 2044/5049 |
π΄ | Branches | 43.35% | 845/1949 |
π΄ | Functions | 36.9% | 417/1130 |
π΄ | Lines | 40.69% | 1957/4809 |
Status of coverage: π’ - ok, π‘ - slightly more than threshold, π΄ - under the threshold
LGTM, left some ideas about future work on configuring controls.
I don't mind stationaryViewport
but I might prefer freezeCamera
,disableCameraMovement
, fixedCameraPosition
(and flip the boolean) or something like that, since we are preventing camera movement within the viewport. Not a strong preference though, fine with me to leave as is.
I saw that you don't allow the "follow" behavior. Do you still want to allow mouse clicking to pick an agent?
I don't mind
stationaryViewport
but I might preferfreezeCamera
,disableCameraMovement
,fixedCameraPosition
(and flip the boolean) or something like that, since we are preventing camera movement within the viewport. Not a strong preference though, fine with me to leave as is.
or maybe lockedCamera
...
I saw that you don't allow the "follow" behavior. Do you still want to allow mouse clicking to pick an agent?
It doesn't really matter if an agent is "picked" as long as we're not following it. For completeness are you saying I should also make it so click on an agent doesn't save the id?
I saw that you don't allow the "follow" behavior. Do you still want to allow mouse clicking to pick an agent?
It doesn't really matter if an agent is "picked" as long as we're not following it. For completeness are you saying I should also make it so click on an agent doesn't save the id?
I don't mind either way but it can result in the agent being selected and outlined. Just want to make sure we are intentional. My comment was just about being able to document (in the code in comments near where the prop is defined, or something) to know exactly what is supposed to be locked down when this prop is set.
Problem
The education module will not need camera controls because it's a 2d simulation
Solution
I added a prop called
stationaryViewport
that defaults tofalse
.NOTES/QUESTIONS:
movableViewport
prop that defaults totrue
Type of change
Please delete options that are not relevant.
Steps to Verify:
npm start
stationaryViewport
to true in the example viewer