How to perform a raycast (or equivalent) ?

Using either the havoc or any other dots phsyics package, how is a raycast done in DOTS?

Use Case: Want to be able to tell for example if my mouse is hovering over a building in say an RTS style game

How to perform a raycast? Have a look at the PhysicsSamples recently updated to the latest package version. See more here EntityComponentSystemSamples/PhysicsSamples at master · Unity-Technologies/EntityComponentSystemSamples · GitHub

1 Like

Amazing thank you!

1 Like