I'm making a top-down shooter where the player types words to shoot enemies, and I need a way to raycast to see which enemy the player is aiming at.
How do I raycast in ct.js?
Hi there,
Not sure what you need exactly, but I guess you should shake the ct.place doc (in the engine, in "Modules' docs), there are some tracing functions.
For example:
ct.place.traceLine(line, [cgroup], [getAll])
Let me know if it helps. ; )
Have a good gamedev! : )