Posted July 26, 2024 by kindeyegames
With great thanks to Foozle's implementation, we added the shape cast ACE to the addon. He also helped stomp out some bugs along the way.
Shape cast is like 'cast ray' (was named 'raycast'), except instead of casting a ray (2d line), you can cast a 3d shape, such as a box, sphere, etc. and determine if anything in the volume of shape is hit. It can be very useful to augment character controllers or camera control (as Foozle is doing.)
Also:
Finally a WARNING: do not enable the C3 project setting 'Use worker'. Explicitly change the setting to 'no', do not leave as 'auto'.
Setting 'Use worker' to 'yes' breaks one of the libraries being used 'comlink' and will show up as cast ray and cast shape no longer working. I will look for a work around in the future.
Cast shape in action