Skip to content

Commit

Permalink
v1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Superbstingray committed Mar 21, 2022
1 parent e1cb18b commit 7d4ec0f
Show file tree
Hide file tree
Showing 12 changed files with 1,149 additions and 0 deletions.
18 changes: 18 additions & 0 deletions UdonCalibratingChairs/Readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Created by Superbstingray

UdonCalibratingChairs
V1.62 - 3/08/21 - Made in UdonGraph SDK3-2021.07.13.13.39

Chairs that adjust their enter point to align avatars to a better sitting position. Includes a fix for VR users entering rotated stations.

Sets the station seated position offset based on the position of the avatars knee.

Makes local and remote users check the users avatar knee position and sets the seated position offset to correct the players knee location to the defined Knee Target Position.

(Usage)

Place prefab in scene and adjust position of chair to a location where you want there to be a seat.

Adjust the Knee Target GameObject to set where the player will be positioned. Ideally you should position this at the edge of chairs where you would expect the avatars knee to be.

Can align with chair models in your scene and then remove or disable the chair model in the prefab.
7 changes: 7 additions & 0 deletions UdonCalibratingChairs/Readme.txt.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions UdonCalibratingChairs/UCCGraph.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

555 changes: 555 additions & 0 deletions UdonCalibratingChairs/UCCGraph/UCC3.1.asset

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions UdonCalibratingChairs/UCCGraph/UCC3.1.asset.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions UdonCalibratingChairs/v3.1.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 72 additions & 0 deletions UdonCalibratingChairs/v3.1/Spinlinder.controller
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1102 &-1561990928425173071
AnimatorState:
serializedVersion: 5
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: spinlinder
m_Speed: 1
m_CycleOffset: 0
m_Transitions: []
m_StateMachineBehaviours: []
m_Position: {x: 50, y: 50, z: 0}
m_IKOnFeet: 0
m_WriteDefaultValues: 1
m_Mirror: 0
m_SpeedParameterActive: 0
m_MirrorParameterActive: 0
m_CycleOffsetParameterActive: 0
m_TimeParameterActive: 0
m_Motion: {fileID: 7400000, guid: 0fd5ee7e7d8ca0e468ad01285c1ff6f0, type: 2}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
m_CycleOffsetParameter:
m_TimeParameter:
--- !u!91 &9100000
AnimatorController:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Spinlinder
serializedVersion: 5
m_AnimatorParameters: []
m_AnimatorLayers:
- serializedVersion: 5
m_Name: Base Layer
m_StateMachine: {fileID: 6174497160424448121}
m_Mask: {fileID: 0}
m_Motions: []
m_Behaviours: []
m_BlendingMode: 0
m_SyncedLayerIndex: -1
m_DefaultWeight: 0
m_IKPass: 0
m_SyncedLayerAffectsTiming: 0
m_Controller: {fileID: 9100000}
--- !u!1107 &6174497160424448121
AnimatorStateMachine:
serializedVersion: 5
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Base Layer
m_ChildStates:
- serializedVersion: 1
m_State: {fileID: -1561990928425173071}
m_Position: {x: 200, y: 0, z: 0}
m_ChildStateMachines: []
m_AnyStateTransitions: []
m_EntryTransitions: []
m_StateMachineTransitions: {}
m_StateMachineBehaviours: []
m_AnyStatePosition: {x: 50, y: 20, z: 0}
m_EntryPosition: {x: 50, y: 120, z: 0}
m_ExitPosition: {x: 800, y: 120, z: 0}
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
m_DefaultState: {fileID: -1561990928425173071}
8 changes: 8 additions & 0 deletions UdonCalibratingChairs/v3.1/Spinlinder.controller.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7d4ec0f

Please sign in to comment.