Dynamic Cockroaches - Unreal C++

THIS BLOG WILL BE UPDATED AS I KEEP WORKING ON THIS SYSTEM AS THEY SOMETIMES GO THROUGH COMPLEX SURFACES AND GET STUCK WALKING ON THE UNDERSIDE OF THE SURFACE.

This shows the basic system of my cockroaches. (walking and idle animation has not been applied to them yet. Also these are moving a lot for testing purposes)

I am currently using a LineTraceSingleByChannel to detect when there is a collision and they need to rotate based on it, but I think I need to use a LineTraceMulti or a Sphere Trace to get all of the hits of the trace to detect which surface normal is best to rotate based on.

Previous
Previous

Portal Rooms - AKA Cool Non-Euclidean Geometry trick! - C++

Next
Next

Custom AI Perception System - Unreal C++