mayacakmak / se2

Control interfaces for manipulating SE2 configurations
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

Panel interface limits #13

Closed mayacakmak closed 4 years ago

mayacakmak commented 4 years ago

While most controls do not allow the object to get outside the workspace, the panel control can send the object off limits--we need to implement check so the object doesn't move once it hits the walls of the workspace.

kavidey commented 4 years ago

I just added a check to ee.translateBy (and translateX/YBy) that limits the x and y location to within the bounds of the workspace: Code

kavidey commented 4 years ago

Right now, the EE can go all the way to the bounds of the workspace: image image

We might want to add a boundary so that it can't get so close to the edge.