|
|
|
|
|
New Experiment
- Posted on: 5/15/2018
[Euphorica]
|
I figured out how to make the objects bounce off colliders! This short animated gif shows how the two enemy types can be contained inside different shapes constructed by box colliders. |
I accomplished this by casting a ray from the objects direction of motion, and then checking the normal direction of the collision, then compare and update the objects vector direction.
I forget to make the object ignore itself, so it didn't work until I realized that, which was extremely frustrating at first.
This component, with the "door" component and new enemies should make for some more interesting game experiments!
<< Back to main news page
|
|
|
|
|
|
|
New Experiment 5/16/2018 |
Updated enemy dots, so their movement can be blocked by walls and other objects. Also fixed an issue with raycasts self-colliding. | |
|