ChilloutVR Built-In Animation Parameters: Difference between revisions

From VR Wiki
Butts
 
Add CVRParameterStream info since some people don't know it exists
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
The following is a list of animator parameters that CVR provides.
The following is a list of animator parameters that CVR provides.


{{CVRStatus}}{{Note|Accurate for CCK 3.3 -- [[User:N3X15|N3X15]] ([[User talk:N3X15|talk]]) 18:19, 4 August 2022 (CDT)}}
{{CVRStatus}}{{Note|Accurate for CCK 3.7 -- [[User:N3X15|N3X15]] ([[User talk:N3X15|talk]]) 16:19, 8 December 2023 (UTC)}}
{| class="wikitable"
{| class="wikitable"
|+ChilloutVR Built-In Animator Parameters
|+ChilloutVR Built-In Animator Parameters
!Name
!Name
!Type
!Type
!Scale
!Notes
!Notes
|-
|-
|MovementX
|MovementX
|float
|float
|Movement on the X axis.
|[0,1)
|Movement on the X axis. +Right -Left
|-
|-
|MovementY
|MovementY
|float
|float
|Movement on the Y axis.
|[0,1)
|Movement on the Y axis. +Forwards -Back
|-
|-
|Grounded
|Grounded
|boolean
|boolean
|Whether the character is on the ground?
|
|Whether the character is on the ground.
|-
|-
|Emote
|Emote
|float (?!)
|float (?!)
|Which emote to play.
|[0,8]
|Which emote to play. Values are real integers, despite being a float.
|-
|-
|CancelEmote
|CancelEmote
|trigger
|trigger
|
|When to cancel running emotes.
|When to cancel running emotes.
|-
|-
|GestureLeft
|GestureLeft
|float (?!)
|float (?!)
|Which gesture is selected on the left hand.
|[-1,6]
|Which gesture is selected on the left hand. Values are real integers.
|-
|-
|GestureRight
|GestureRight
|float (?!)
|float (?!)
|Which gesture is selected on the right hand.
|[-1,6]
|Which gesture is selected on the right hand. Values are real integers.
|-
|-
|Toggle
|Toggle
|float
|float
|Which toggles are enabled?
|[0,7]
|Which action state is enabled.
|-
|-
|Sitting
|Sitting
|boolean
|boolean
|
|Whether the player is sitting.
|Whether the player is sitting.
|-
|-
|Crouching
|Crouching
|boolean
|boolean
|
|Whether the player is crouching.
|Whether the player is crouching.
|-
|-
|Flying
|Flying
|boolean
|boolean
|
|Whether the player is flying.
|Whether the player is flying.
|-
|-
|Prone
|Prone
|boolean
|boolean
|
|Whether the player is lying prone.
|Whether the player is lying prone.
|}
=== Parameter Streams ===
CVR also allows you to pull in data that you want and assigning it via the CVRParameterStream component.  This component is available on worlds, props, and avatars.
{| class="wikitable"
|+
!Name
!Type
!Range
!Notes
|-
|TimeSeconds
|float
|
|Seconds since local client midnight. Milliseconds included after the decimal.
|-
|TimeSecondsUtc
|float
|
|Same as above, except UTC as timezone.
|-
|DateTimeSecondsUtc
|float
|
|Seconds since Unix Epoch, plus milliseconds as decimals
|-
|DeviceMode
|float
|[0.0,1.0]
|1.0 if game is in VR mode
|-
|HeadsetOnHead
|float
|[0.0,1.0]
|1.0 if headset is being worn (proximity sensor enabled)
[I'll add more shit after I get sleep]
|}
|}

Latest revision as of 16:19, 8 December 2023

The following is a list of animator parameters that CVR provides.


Note: Accurate for CCK 3.7 -- N3X15 (talk) 16:19, 8 December 2023 (UTC)
ChilloutVR Built-In Animator Parameters
Name Type Scale Notes
MovementX float [0,1) Movement on the X axis. +Right -Left
MovementY float [0,1) Movement on the Y axis. +Forwards -Back
Grounded boolean Whether the character is on the ground.
Emote float (?!) [0,8] Which emote to play. Values are real integers, despite being a float.
CancelEmote trigger When to cancel running emotes.
GestureLeft float (?!) [-1,6] Which gesture is selected on the left hand. Values are real integers.
GestureRight float (?!) [-1,6] Which gesture is selected on the right hand. Values are real integers.
Toggle float [0,7] Which action state is enabled.
Sitting boolean Whether the player is sitting.
Crouching boolean Whether the player is crouching.
Flying boolean Whether the player is flying.
Prone boolean Whether the player is lying prone.

Parameter Streams

CVR also allows you to pull in data that you want and assigning it via the CVRParameterStream component. This component is available on worlds, props, and avatars.

Name Type Range Notes
TimeSeconds float Seconds since local client midnight. Milliseconds included after the decimal.
TimeSecondsUtc float Same as above, except UTC as timezone.
DateTimeSecondsUtc float Seconds since Unix Epoch, plus milliseconds as decimals
DeviceMode float [0.0,1.0] 1.0 if game is in VR mode
HeadsetOnHead float [0.0,1.0] 1.0 if headset is being worn (proximity sensor enabled)

[I'll add more shit after I get sleep]