- Home /
c# How do I set up continuous raycast collision detection?
I tried to google it but I only turned up an old tutorial I found that allowed clipping. I would prefer to avoid as much noticeable clipping as possible.
The game I'm working on is being built in 3d but I intend for it to be played from a 2d isometric angle.
Can u tell what exactly u want to make? It will be easy for me to help you out. If u want to continuous raycast do it in FixedUpdate
Answer by SenorGoatMan · Aug 07, 2014 at 02:54 AM
I'm not very experienced, but have you considered putting it in your 'Update' function? Ot seems to me like that would do it, though I'm not sure how smart it woulf be performance-wise Forgive me if I'm wrong
Yeah thats kind of what the tutorial I did worked like. It was in there and it just kind of deaccelerated the unit until it was stopped. If it was moving too fast though it would slip in some extra distance between update cycles and clip into the wall or whatever. I think I might know how to do it, but I do have to do a bit more research.