A contact system to detect world collision.
https://github.com/VRLabs/Collision-Detection/assets/76777936/f9e0b70a-c5ff-43a6-a0ad-b7a3e49f3a63
Collision Detection FX
to your own FX Controller, using the Avatars 3.0 Manager tool.Collision Detection
prefab into the base of your Hierarchy.[!NOTE]
When building for Quest, you will have to remove unsupported components and shaders
collision
module, or disable the collision
module and enable the triggers
module to select specific trigger colliders.There are three important bools in your FX Controller:
CollisionDetection/IsColliding
: Whether or not the component is currently colliding with a collider.CollisionDetection/AlwaysReset
: Whether or not IsColliding should go to false immediately after stopping collision, or stay on until the Reset bool is enabled.CollisionDetection/Reset
: If CollisionDetection/AlwaysReset
is false, this bool is used to reset the IsColliding state.Contact Senders: 1
Contact Receivers: 1
FX Animator Layers: 1
Particle Systems: 1
Collision Detection
Collision Detection is available as-is under MIT. For more information see LICENSE.
dev.vrlabs.collision-detection
未設定
1.0.2
2022.3 以降
なし
なし