Enable to visualize raycasts in the scene with gizmos
Get the rapier body for a Needle component
Get the Needle Engine component for a rapier object
Returns the linear velocity of a rigidbody or the rigidbody of a collider
Fast raycast against physics colliders
Optionalorigin: Vec3 | Vec2ray origin in screen or worldspace
Optionaldirection: Vec3ray direction in worldspace
Optionaloptions: { additional options
OptionalfilterRaycast filter groups. Groups are used to apply the collision group rules for the scene query. The scene query will only consider hits with colliders with collision groups compatible with this collision group (using the bitwise test described in the collision groups section). See https://rapier.rs/docs/user_guides/javascript/colliders#collision-groups-and-solver-groups
For example membership 0x0001 and filter 0x0002 should be 0x00010002
OptionalfilterReturn false to ignore this collider
OptionalmaxOptionalqueryOptionalsolid?: booleanTrue if you want to also hit objects when the raycast starts from inside a collider
raycast that also gets the normal vector. If you don't need it use raycast()
Optionalorigin: Vec3 | Vec2Optionaldirection: Vec3Optionaloptions: { OptionalfilterRaycast filter groups. Groups are used to apply the collision group rules for the scene query. The scene query will only consider hits with colliders with collision groups compatible with this collision group (using the bitwise test described in the collision groups section). See https://rapier.rs/docs/user_guides/javascript/colliders#collision-groups-and-solver-groups
For example membership 0x0001 and filter 0x0002 should be 0x00010002
OptionalfilterReturn false to ignore this collider
OptionalmaxOptionalqueryOptionalsolid?: booleanTrue if you want to also hit objects when the raycast starts from inside a collider
Enable to render collider shapes