Skip to content

A ChilloutVR's Laydown system. Animator based for maximum compatibility.

License

Notifications You must be signed in to change notification settings

MachMX/Advanced-Laydown-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

46 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Advanced Laydown System

A ChilloutVR's Laydown system. Animator based for maximum compatibility. Mainly taken in mind for Desktop, 3-Point Tracking and 4-Point Tracking users to use as an extention for a laydown system that can dynamically change laydown animations, and even have more control for being able to sitdown and standup and for animations to change inbetween certain user defined threshold sets without relying 100% on mods while also being easily modifiable/expandable by anyone.

While this setup doesn't need mods at all, I recommend for 3 Point Tracking and 4 Point Tracking users the use of Avatar Motion Tweaker - with the use of the CVRMelonAssistant a community and Developer moderated mod/plugin repository and mod installer - mainly to fix some IK issues and facilitating the usage of this package, but again not neccesary. On the future will release an even more involved setup that would address not needing mod usage with jsut aniamtor logic.

Setup compatible from the get-go with Action Menu mod, for an easy Pie-Menu experience (make sure to read how to use it or will not work if you want to use this), also available on the CVRMelonAssistant collection.

Tldr: Easy laydown for CVR.

Requirements

Setup

ChilloutVR's doesn't have an overly involved setup addon such a VRCFury, but honestly it's not really needed for this. Still, many new users might have difficulty understanding or even not knowing where/how to setup this, so I will explain it the best as I can below. There are 3 Main Parts, the Layer/Parameter Setup - for the Animator setup, the Advanced Settings Menu Setup - for the ingame menu connection, and the Parameter Stream Setup - for the dynamic Parameters to work.

Layer/Parameter Setup

There's 3 Multiple ways to make the Layer/Parameter setup, I absolutely recommend the RATS Method, but it's not the only way.

Lazy Method (Not Recommended, can cause issues with Parameter setups)

FYI- This way is fast and works with default Unity/CCK and no extentions, but I don't recommend it still due to how Unity Animator Editor can be buggy and not copy Parameters or Parameter Conditions within the Transitions between layers. So be warned.

  • You start by going into Unity inside the included Animator Controller. Structure

  • Go and copy the included Layers into your own Avatar's Animator Controller (Ctrl+C/Ctrl+V) Copy Layer Type1 1

  • Seriously, make sure you copy both the Laydown and Laydown Compare layers only (Ctrl+C/Ctrl+V) Copy Layer Type1 2

  • After copying them into your Avatar's Animator Controller, make sure the Parameters were also copied over, Unity is dumb and there is a coin flip it may or may not copy these correctly so if you don't see them on your own controller add them manually to make sure you have them right and it should fix most issues if they have the exact same name as exact Parameter type, otherwise try another method. Copy Layer Type1 3

Simple AAS Method (Jank but works, can be destructive READ CAREFULLY)

NOTE: Beware SimpleAAS isn't meant for this usage but it works as a janky way to merge controllers fast.

  • As a preface the usage for SimpleAAS is not supported by the dev of the extention, this is pure jank that works.

  • Install Simple AAS (more info under the Addons Recommendation section below). Simple AAS on compilation automatically populate the Override Field under the CVR Avatar component as well as retarget the existing Animator Controller Override with the newly created Animator Controller. Do make notice of this. SimpleAAS

  • If you have not used SimpleAAS yet, read how to use it and what it does, otherwise follow my jank. You must have your completed Avatar Controller/ CVR Avatar setup, and also make a backup of such, in the scene/backup scene/export/DO IT.

  • Make an empty game object on your scene, search for a component called "SimpleAAS", and basically copy the setup on this image step and press "Compile", after a short moment it will merge Controllers Copy Layer Type2 1

  • Now with your new Controller, just set it up correctly to your CVR Avatar's Animator/Animator Override sections. New controller found inside Assets\NotAKid\SimpleAAS.Generated\Controllers normally. Copy Layer Type2 2

  • After doing all this confirm your Advanced Avatar Settings are correct, return them into their previous state if neccesary (you can say a way under the Advanced Avatar Menu Setup Section. Also Make sure to delete the new Game Object with the SimpleAAS component, or it will recompile on upload and cause issues. NAK warning so do so!

RATS Method (Recommended, simple, fast, failsafe, nondestructive)

  • Install RATS Unity Package and Harmony for Unity Editor! Unity Package into your project, works on Unity Editor 2021 without any issues. (more info under the Addons Recommendation section below).

  • Go to the included Animator Controller Structure

  • Copy Layers from included Controller Copy Layer Type3 1

  • Paste Layers into your Avatar's Controller Copy Layer Type3 2

  • Now it has copied both the layers and parameters. Simple as that.

Advanced Settings Menu Setup

  • In order to have the ingame recognize the Laydown system, just drag the Example Setup into the scene Structure

  • Under the CVRAvatar/Advanced Settings there's gonna be a Triangle on the right side of the Inputs section, click on that and jsut copy/paste all of the settings into your own Avatar's Advanced Settings Copy 1

  • Copy 2

Parameter Stream Setup

  • Finally for the #AUpright parameter to be dynamically updated, we are gonna copy/add the included Parameter Stream from the Exampel Setup included. Just follow the images and you will get it. If you already have a Parameter Stream included on your Avatar, just add the value as it appears into your own Parameter Stream. Structure

  • Copy PS1

  • Copy PS2

  • Copy PS3

Showcase

  • Desktop usage. 20231203144901_1 20231203145000_1 20231203145014_1 20231203145104_1

  • VR Usage

  • Compatible with 3 and 4 point tracking. best experience is with 4 point tracking tho, since otherwise the legs will rotate with the legs too.

  • Action Menu Compatibility (open #Laydown) 20231203154440_1 20231203154448_1 20231203154455_1 20231203154459_1

Addon Recommendation

You don't need this for the setup to work, but I highly recommend this addon's/extentions!

  • @NotAKidOnSteam 's AASEmulator a simple in Editor ChilloutVR's Advanced Avatar Settings emulator that let's you test your animation's and your Animator Logic rapidly and easily.
  • @NotAKidOnSteam 's CCK.BaseAnimatorPatch an alternative for ChilloutVR's base avatar animator that is easily extendable and with spot logic. (Also has some better animation configurations in my opinion :P )
  • @NotAKidOnSteam 's SimpleAAS a simple Unity Animator Controller merger, best used to combine multiple animators into 1! Also incredibly useful when porting avatars from other platforms into ChilloutVR!
  • The unfortunately named RATS, or (๐Ÿ€ RATS - Raz's Animator Tweaks 'n' Stuff ๐Ÿง€) for it's extention and bugfixes of the Unity Editor, can't remark how useful this thing is, so use it! (specifically the Animator editor, which still hasn't been properly bugfixed by Unity even on Unity 2021...)
  • Harmony for Unity Editor! repacked by Rrazgriz and the legend of Brrainz for originally making it - without their help modding Unity Games (and Editor) wouldn't be the same as we know it now.

Credit's and Inspirations:

  • Dervali for their awesome LaySitting Prefab and animation resource!
  • Lastation for their NSFW GoLoco as inspiration and animation resource!
  • Franada for their original GogoLoco as an inspiration.

License under MIT

"The MIT License is short and to the point. It lets people do almost anything they want with your project, like making and distributing closed source versions." -https://choosealicense.com/

About

A ChilloutVR's Laydown system. Animator based for maximum compatibility.

Resources

License

Stars

Watchers

Forks

Packages

No packages published