Raycast Offset Bug

Piyush

Member
Hello @Justin Sir
I am using UCC (UFPS+TPC) in my game
But my character is set only as First person

To Interact with game objects like drawers paintings etcc i am using Interact ability with Raycast and My custom Scripts connected to interactable component.
Everything works good but the raycast ray seems to have bug
Please check this video, it shows all of it

1) I am unable to get perfect raycast offset that works for full collider perfectly
2) If i try to work raycast for 1 gameobject then other needs different offset
3) with offset value near to 1.8 the drawers doesn't open as expected idk why

It feels a lot messy Sir, Can you please check and confirm if there is any issue or not
This is really important for me cause all of my game abilities depends on raycast ❤️
What i am trying to achieve is raycast is directly in the middle of the camera so it points directly towards crosshair and whatever user looks from crosshair that thing can be interacted



Also Sir, can you add an option like Cast Distance Initial >= some value and till cast distance = 2 (I told about this more in DM to you) Mentioned here too ❤️
 
If you want the raycast to occur from the center of the screen make sure you have Use Look Position selected. This will use the camera's center point rather than the character's position while doing the raycast.
 
Top