Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved Snapping System #2

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

SnazzGass
Copy link
Contributor

No description provided.

- simplified old code
- made snap a binary option, when enabled, position is snapped to 0.5, scale is snapped to 1, and rotation is snapped to 15 degrees.
- scale snapping no longer affects objects smaller than the snap size
- position snapping takes into account object rotation, objects of the same rotation are aligned with each other.
- Snapping is now only applied to selected objects
- Snapping will not scale objects other than cubes
- Cubes can't be scaled below 1 with snapping now
- Increased the selection raycast distance to 1000
Copy link

@nonagonn nonagonn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice, thanks for contribution ..

- The navigation mesh for enemies can only be generated if the level has enemies and is only generated when the level is loaded for the first time.
- check to see if an object is selected before aligning it
- grid alignment now only works on gizmo manipulation
- the final, aligned transform can be viewed while manipulating the gizmo
- added a wrapper group when prefab objects are spawned. Grid alignment doesn't play nice with spinning milk and pre-scaled prefab objects
- Allow move step to be changed while in grid align mode
- grid snapping for position, scale, and rotation are now applied independently
- only milk gets a container group, other prefabs are free.

Don't spill the milk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants