No description
Find a file
JelleJurre 201fa97211
Merge pull request #10 from VRLabs/feat/update-pipeline
Add better release woorkflow
2025-04-24 13:58:11 +02:00
.github/workflows Add better release woorkflow 2024-11-15 15:06:28 +01:00
Instancer Add instancer and action 2024-04-04 23:12:32 +02:00
Media Add preview stuff 2024-04-04 23:15:49 +02:00
Resources Fix mixed WD and adjust animation clips 2024-04-14 21:33:33 +02:00
.gitignore Update gitignore 2024-03-09 18:40:46 +01:00
Collision Detection FX.controller Remove accidental transition condition 2024-04-14 21:35:35 +02:00
Collision Detection FX.controller.meta Add prefab 2024-03-09 22:59:45 +01:00
Collision Detection.prefab Revert "Remove particle system renderer" 2024-09-09 14:42:40 +02:00
Collision Detection.prefab.meta Add prefab 2024-03-09 22:59:45 +01:00
Instancer.meta Add instancer and action 2024-04-04 23:12:32 +02:00
LICENSE Initial commit 2024-03-09 18:39:08 +01:00
LICENSE.meta Add meta files 2024-03-09 18:40:26 +01:00
Media.meta Add instancer and action 2024-04-04 23:12:32 +02:00
package.json Update package json 2024-08-21 19:10:17 +02:00
package.json.meta Add package.json 2024-04-24 16:04:25 +02:00
README.md Update README 2024-08-21 19:10:25 +02:00
README.md.meta Add meta files 2024-03-09 18:40:26 +01:00
Resources.meta Add prefab 2024-03-09 22:59:45 +01:00

Collision Detection

Generic badge Generic badge Generic badge Generic badge Generic badge

Generic badge Generic badge

A contact system to detect world collision.

Collision

⬇️ Download Latest Version

📦 Add to VRChat Creator Companion


How it works

  • A particle dies on collision with colliders, causing contacts to stop contacting each other, causing a boolean to enable.

Install guide

https://github.com/VRLabs/Collision-Detection/assets/76777936/f9e0b70a-c5ff-43a6-a0ad-b7a3e49f3a63

  • Merge the Animator Controller Collision Detection FX to your own FX Controller, using the Avatars 3.0 Manager tool.
  • Drag & drop the Collision Detection prefab into the base of your Hierarchy.
  • Right click and unpack the prefab, then drag & drop it onto your avatar.
  • Parent Constrain it to any object in your avatars hierarchy as needed.

Note

When building for Quest, you will have to remove unsupported components and shaders

How to use

  • After parent constraining/moving the object as needed, you can scale the object to obtain the desired range.
    • Note: To change the collision requirements, you can change the Layers in the 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.

Performance stats

Contact Senders:    1
Contact Receivers:  1
FX Animator Layers: 1
Particle Systems:   1

Hierarchy layout

Collision Detection

Contributors

License

Collision Detection is available as-is under MIT. For more information see LICENSE.