Weapon Slash
Weapon Slash
A movement based weapon effect trigger system
β¬οΈ Download Latest Version
π¦ Add to VRChat Creator Companion
</div>How it works
- A polar-limited PhysBone creates an offset for a Contact system to play animations when a slashing motion is done with your arm.
- A networking layer animates a separate PhysBone hierarchy to account for IK smoothing.
Install guide
https://github.com/VRLabs/Weapon-Slash/assets/76777936/129c37e9-101d-4a30-854e-00c03a01016c
- Download and import Cancerspace shader.
- Merge the Animator Controller
Weapon Slash FXto your own FX Controller, using the Avatars 3.0 Manager tool. - Merge the Expression Parameter List
Weapon Slash Parametersto your own Expression Parameter List, using the Avatars 3.0 Manager tool. - Drag & drop the
Weapon Slashprefab into the base of your Hierarchy. - Right click and unpack the prefab, then drag & drop it onto your avatar.
- Expand the prefab hierarchy and find
Weapon Slash->Weapon - Move
Weaponoutside ofWeapon Slashand place it on the left or right wrist of your avatar.- Adjust the position and rotation of
Weaponto fit into your hand. - You can replace
Weapon->γγ₯γΌγγ½γΌγwith your own prop. Keep your prop in the same placement and facing the same way as the default prop.
- Adjust the position and rotation of
[!NOTE]
When building for Quest, you will have to remove unsupported components and shaders. The particle systems provided in the package rely on shaders not supported by VRChat, so you will have to create your own effects.
How to use
WeaponSlash/Controlparameter must be True for the system to be active.WeaponSlash/HeavyActiveparameter must be True for the Heavy Slash to be enabled.- Under the
Weapon Slash/Effects/(Light or Heavy) Slashhierarchy are Containers. Place custom effects within these Containers.Weapon/(Light or Heavy) Effect Targetis where these effects will appear. - You can edit
Weapon Slash/Dynamics/PhysBoneto change the force required for the slash. For further adjustment you can also change the radius ofWeapon Slash/Dynamics/Receiver.
Performance stats
System:
Constraints: 12
Constraint Depth: 5
Contact Receivers: 2
Contact Senders: 2
FX Animator Layers: 4
Parameter Memory: 3
Phys Bones: 2
Default Weapon:
Material slots: 2
Mesh Renderers: 2
Default Effects:
Audio Sources: 7
Particle Systems: 11
Hierarchy layout
Weapon Slash
|-Dynamics
| |-PhysBone
| |-Receiver
| |-Remote
| | |-PhysBone
| | |-Receiver
|-Effects
| |-Light Slash
| | |-A
| | | |-Container
| | | | |-Particle System
| | | | |-Audio
| | |-B
| | | |-Container
| | | | |-Particle System
| | | | |-Audio
| | |-C
| | | |-Container
| | | | |-Particle System
| | | | |-Audio
| |-Heavy Slash
| | |-Weak
| | | |-A
| | | | |-Container
| | | | | |-Particle System
| | | | | | |-Particle System
| | | | | |-Audio
| | | |-B
| | | | |-Container
| | | | | |-Particle System
| | | | | | |-Particle System
| | | | | |-Audio
| | | |-C
| | | | |-Container
| | | | | |-Particle System
| | | | | | |-Particle System
| | | | | |-Audio
| | |-Strong
| | | |-Container
| | | | |-Particle System
| | | | | |-Particle System
| | | | |-Audio
|-Weapon
| |-γγ₯γΌγγ½γΌγ
| | |-Blade
| | |-Hilt
| |-Light Effect Target
| |-Heavy Effect Target
Contributors
License
Weapon Slash is available as-is under MIT. For more information see LICENSE.
β
<div align="center"><img src="https://github.com/VRLabs/Resources/raw/main/Icons/VRLabs.png" width="50" height="50"> <img src="https://github.com/VRLabs/Resources/raw/main/Icons/Empty.png" width="10"> <img src="https://github.com/VRLabs/Resources/raw/main/Icons/Discord.png" width="50" height="50"> <img src="https://github.com/VRLabs/Resources/raw/main/Icons/Empty.png" width="10"> <img src="https://github.com/VRLabs/Resources/raw/main/Icons/Patreon.png" width="50" height="50"> <img src="https://github.com/VRLabs/Resources/raw/main/Icons/Empty.png" width="10"> <img src="https://github.com/VRLabs/Resources/raw/main/Icons/Twitter.png" width="50" height="50">
</div>Keywords
No keywords found.Install via VCC
Package ID
dev.vrlabs.weapon-slashUnity Version
2022.3Unity Release
undefinedVRChat Version
undefined