Worker Blocks
This week i worked on the worker blocks. My main concern while working with these blocks was them clipping on their corners, going into the walls and floors. The worker blocks were set up to bounce off of surfaces based on which side of the block hit a surface. Becuase these blocks are constantly rotating this presented a challenge to figure out which side was bouncing off of a surface while rotating.
At first i had tried to go with a raycast solution to figure out which side was up while rotating. after hours of researching and playing around with the raycasts i was unable to properly get a raycast to only hit the floor coliders without reporting a ton of other coliders and objects. Even with the correct layers selected i was unable to get anything to work correctly.
Instead of a raycast i decided to calculate which side was up based on the rotation of the block. While this looks a bit bulkier in code it works just the same and was able to get the results i was looking for.
Disavowed
Status | In development |
Authors | King Studio, Devon0033, Mike_Sroka, Michael-W-Smith7 |
Genre | Adventure |
Tags | 2D, Action-Adventure, Metroidvania, Unity |
More posts
- Steam Launch!!!Dec 17, 2022
- Coming to a closeDec 16, 2022
- Project OverviewDec 14, 2022
- Steam StuffDec 13, 2022
- Achievement GetDec 11, 2022
- Controls Remapping AgainDec 10, 2022
- Steam funDec 09, 2022
- Boss Music ImplementationDec 09, 2022
- SteamWorksDec 02, 2022
- Callback Issue with Controller SupportDec 02, 2022
Leave a comment
Log in with itch.io to leave a comment.