Places an object at the hit point of a raycast
https://github.com/VRLabs/Raycast-Prefab/assets/76777936/b97b4dd0-0615-430b-9f10-9a4c40f94d43
Raycast
prefab into the base of your Hierarchy.Casting Target
object.
Casting Target
object until it “aims” at your target.Container
GameObject or constrain them to the Container
GameObject.
Container
GameObject and have to be parented to the Container
object instead due to “Fix Transforms” affecting the emission location.Container
object will raycast down from the Casting Target
onto any Collider which matches the Layers set up in the Grounder
’s Grounder IK Script (by default this is: Default
, Ignore Raycat
, Water
and Environment
).
PlayerLocal
and MirrorReflection
, and remote avatar layers will always be Player
(with the exception of UIMenu).Constraints: 2
Constraint Depth: 2
Colliders: 1
Raycast
|-Container
| |-Cube
| |-Cube
|-IK
| |-Grounder
| | |-Offset
| | | |-End
|-Floor
|-Casting Target
Raycast Prefab is available as-is under MIT. For more information see LICENSE.
dev.vrlabs.raycast-prefab
Undefined
1.2.2
2022.3 or later
No dependencies
No legacy packages