Open MEESTERSoupCan opened 5 months ago
I feel like the best/simplest way to implement this would be to add a Is Character Collider
node similar to Is Character Controller
with a collider input and a boolean output.
By implementing it this way- it would be possible to make use of the existing physics events nodes in addition to raycasts to check which collider is being interacted with and in turn check if the collider is a character collider.
The rest of what you requested would probably be best handled through generic component access in ProtoFlux #57.
Is your feature request related to a problem? Please describe.
I wanted to be able to detect if a user runs into a character collider that isn't the floor, but have no way of doing so unless I use some jank raycast checks, which also doesn't check for character collisions.
Describe the solution you'd like
New flux node(s) to output the other properties of the Collider Component
Describe alternatives you've considered
My only option would be to use Raycasts, but those are limited in what they can do in regards to collider checking, and can't differentiate between an object, or the world (unless you check for bounding box size, but a node would be more convenient, and consistent in the event a large raycasted object doesn't have character collisions)
Additional Context
I feel a lot of physics based projects could really benefit from having more ways to interface with the Collider Component (In my case, I wanted to be able to wallclimb like an anxiety-filled italian)
Requesters
MEESTER_SoupCan