WreckBow
Bow and Arrow in Unity VR for Oculus Quest using XRIToolkit inspired by RecRoom
Install / Use
/learn @marcelisdead/WreckBowREADME
Bow and arrow in VR is one of the most satisfying inputs so far in my opinion. I wanted one to have fun with when debugging other VR projects so I made one. Took inspiration from my favorite bow ive used in VR: RecRoom. Sure its more cartoony but I think their way of using 2 hands for pointing the bow gives better control.
https://user-images.githubusercontent.com/46794418/182766555-5b5ef505-6c55-45b8-adcd-0e5388a8412e.mov
Tried to make the scripts pretty modular so that maybe they could be reused for other purposes.
Still want to make:
-alternate script to make collision have arrow stick to object instead of world. -Make StretchSound script more straightforward. -version with sockets so anything can be shot in game.
Notes:
-Uses Unity Editor 2020.3.13f1
-Uses 2.0.1 XRI Toolkit.
-You also need to add the Starter Assets for the XRI Default Input Actions.
-DemoScene has script that turns off physics interaction between layer 6(arrow),7(bow) so it works in that scene if you import the package into your project.
-To pickup and pull, hands need atleast 'Player' layered trigger colliders.
Let me know if you have any comments or questions. I had fun with it and think some of the scripts are pretty cool. Hope you do too!
Related Skills
node-connect
351.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
