Have the new VRC Raycast component write some parameters to Animator
available in future release
RuneFox237
Like the Physbone and Contact components, I believe the new Raycast component could benefit from having it write a couple parameters to the animator. These parameters would help simplify some setups that already exist which use constraints and contacts to get similar information out of FinalIK raycasts.
Name below is the name given by the user for the parameter name similar to how it's done for Physbones.
Name_Ratio - Ratio of (Current Raycast Distance/Max Raycast Distance)
Name_Distance - Current distance of raycast
Name_Colliding - Boolean that returns true when raycast is colliding with something.
If anyone else has any parameters that they would like to suggest feel free to write in the comments.
Log In
Dexvoid
Merged in a post:
[SDK 3.10.3-beta.1] Send Distance and Miss via parameter on RayCast
DX_30
It would be very useful to have these properties sent as parameters, just like Phybone does.
Having the option to disable on miss is useful, but having a direct way to access that information through the animator, without needing contacts, is even better.
Are_
Seems like such an obvious thing to add, the fact that they didn't kinda scares me. Would probably be two parameters sent in, one bool for hit/miss and one float for distance the ray travels, as seen as a fraction of the ray max distance.
This post was marked as
available in future release
This post was marked as
tracked
Pokerface Cactus
i would use 'hit' over 'colliding' to keep the terminology more in line with common raycast terminology but otherwise yes please.