|
| 1 | +# Class InputActionPropertyVelocityTracker |
| 2 | + |
| 3 | +Retrieves the velocity and angular velocity from the specified InputActionProperty. |
| 4 | + |
| 5 | +## Contents |
| 6 | + |
| 7 | +* [Inheritance] |
| 8 | +* [Namespace] |
| 9 | +* [Syntax] |
| 10 | +* [Fields] |
| 11 | + * [currentAngularVelocity] |
| 12 | + * [currentVelocity] |
| 13 | +* [Properties] |
| 14 | + * [AngularVelocitySource] |
| 15 | + * [VelocitySource] |
| 16 | +* [Methods] |
| 17 | + * [AngularVelocityActionCanceled(InputAction.CallbackContext)] |
| 18 | + * [AngularVelocityActionPerformed(InputAction.CallbackContext)] |
| 19 | + * [BindAngularVelocityActions()] |
| 20 | + * [BindVelocityActions()] |
| 21 | + * [DisableAction(InputActionProperty)] |
| 22 | + * [DoGetAngularVelocity()] |
| 23 | + * [DoGetVelocity()] |
| 24 | + * [EnableAction(InputActionProperty)] |
| 25 | + * [OnDisable()] |
| 26 | + * [OnEnable()] |
| 27 | + * [UnbindAngularVelocityActions()] |
| 28 | + * [UnbindVelocityActions()] |
| 29 | + * [VelocityActionCanceled(InputAction.CallbackContext)] |
| 30 | + * [VelocityActionPerformed(InputAction.CallbackContext)] |
| 31 | + |
| 32 | +## Details |
| 33 | + |
| 34 | +##### Inheritance |
| 35 | + |
| 36 | +* System.Object |
| 37 | +* InputActionPropertyVelocityTracker |
| 38 | + |
| 39 | +##### Namespace |
| 40 | + |
| 41 | +* [Tilia.Input.UnityInputSystem.Tracking.Velocity] |
| 42 | + |
| 43 | +##### Syntax |
| 44 | + |
| 45 | +``` |
| 46 | +public class InputActionPropertyVelocityTracker : VelocityTracker |
| 47 | +``` |
| 48 | + |
| 49 | +### Fields |
| 50 | + |
| 51 | +#### currentAngularVelocity |
| 52 | + |
| 53 | +The current angular velocity. |
| 54 | + |
| 55 | +##### Declaration |
| 56 | + |
| 57 | +``` |
| 58 | +protected Vector3 currentAngularVelocity |
| 59 | +``` |
| 60 | + |
| 61 | +#### currentVelocity |
| 62 | + |
| 63 | +The current velocity. |
| 64 | + |
| 65 | +##### Declaration |
| 66 | + |
| 67 | +``` |
| 68 | +protected Vector3 currentVelocity |
| 69 | +``` |
| 70 | + |
| 71 | +### Properties |
| 72 | + |
| 73 | +#### AngularVelocitySource |
| 74 | + |
| 75 | +The InputActionProperty containing the angular velocity source. |
| 76 | + |
| 77 | +##### Declaration |
| 78 | + |
| 79 | +``` |
| 80 | +public InputActionProperty AngularVelocitySource { get; set; } |
| 81 | +``` |
| 82 | + |
| 83 | +#### VelocitySource |
| 84 | + |
| 85 | +The InputActionProperty containing the velocity source. |
| 86 | + |
| 87 | +##### Declaration |
| 88 | + |
| 89 | +``` |
| 90 | +public InputActionProperty VelocitySource { get; set; } |
| 91 | +``` |
| 92 | + |
| 93 | +### Methods |
| 94 | + |
| 95 | +#### AngularVelocityActionCanceled(InputAction.CallbackContext) |
| 96 | + |
| 97 | +Processes the context when the angular velocity InputActionProperty is canceled. |
| 98 | + |
| 99 | +##### Declaration |
| 100 | + |
| 101 | +``` |
| 102 | +protected virtual void AngularVelocityActionCanceled(InputAction.CallbackContext context) |
| 103 | +``` |
| 104 | + |
| 105 | +##### Parameters |
| 106 | + |
| 107 | +| Type | Name | Description | |
| 108 | +| --- | --- | --- | |
| 109 | +| InputAction.CallbackContext | context | The action context data. | |
| 110 | + |
| 111 | +#### AngularVelocityActionPerformed(InputAction.CallbackContext) |
| 112 | + |
| 113 | +Processes the context when the angular velocity InputActionProperty is performed. |
| 114 | + |
| 115 | +##### Declaration |
| 116 | + |
| 117 | +``` |
| 118 | +protected virtual void AngularVelocityActionPerformed(InputAction.CallbackContext context) |
| 119 | +``` |
| 120 | + |
| 121 | +##### Parameters |
| 122 | + |
| 123 | +| Type | Name | Description | |
| 124 | +| --- | --- | --- | |
| 125 | +| InputAction.CallbackContext | context | The action context data. | |
| 126 | + |
| 127 | +#### BindAngularVelocityActions() |
| 128 | + |
| 129 | +Binds the angular velocity performed and canceled actions to the processing methods. |
| 130 | + |
| 131 | +##### Declaration |
| 132 | + |
| 133 | +``` |
| 134 | +protected virtual void BindAngularVelocityActions() |
| 135 | +``` |
| 136 | + |
| 137 | +#### BindVelocityActions() |
| 138 | + |
| 139 | +Binds the velocity performed and canceled actions to the processing methods. |
| 140 | + |
| 141 | +##### Declaration |
| 142 | + |
| 143 | +``` |
| 144 | +protected virtual void BindVelocityActions() |
| 145 | +``` |
| 146 | + |
| 147 | +#### DisableAction(InputActionProperty) |
| 148 | + |
| 149 | +Disables the given InputActionProperty. |
| 150 | + |
| 151 | +##### Declaration |
| 152 | + |
| 153 | +``` |
| 154 | +protected virtual void DisableAction(InputActionProperty property) |
| 155 | +``` |
| 156 | + |
| 157 | +##### Parameters |
| 158 | + |
| 159 | +| Type | Name | Description | |
| 160 | +| --- | --- | --- | |
| 161 | +| InputActionProperty | property | The property to disable. | |
| 162 | + |
| 163 | +#### DoGetAngularVelocity() |
| 164 | + |
| 165 | +##### Declaration |
| 166 | + |
| 167 | +``` |
| 168 | +protected override Vector3 DoGetAngularVelocity() |
| 169 | +``` |
| 170 | + |
| 171 | +##### Returns |
| 172 | + |
| 173 | +| Type | Description | |
| 174 | +| --- | --- | |
| 175 | +| Vector3 | n/a | |
| 176 | + |
| 177 | +#### DoGetVelocity() |
| 178 | + |
| 179 | +##### Declaration |
| 180 | + |
| 181 | +``` |
| 182 | +protected override Vector3 DoGetVelocity() |
| 183 | +``` |
| 184 | + |
| 185 | +##### Returns |
| 186 | + |
| 187 | +| Type | Description | |
| 188 | +| --- | --- | |
| 189 | +| Vector3 | n/a | |
| 190 | + |
| 191 | +#### EnableAction(InputActionProperty) |
| 192 | + |
| 193 | +Enables the given InputActionProperty. |
| 194 | + |
| 195 | +##### Declaration |
| 196 | + |
| 197 | +``` |
| 198 | +protected virtual void EnableAction(InputActionProperty property) |
| 199 | +``` |
| 200 | + |
| 201 | +##### Parameters |
| 202 | + |
| 203 | +| Type | Name | Description | |
| 204 | +| --- | --- | --- | |
| 205 | +| InputActionProperty | property | The property to enable. | |
| 206 | + |
| 207 | +#### OnDisable() |
| 208 | + |
| 209 | +##### Declaration |
| 210 | + |
| 211 | +``` |
| 212 | +protected virtual void OnDisable() |
| 213 | +``` |
| 214 | + |
| 215 | +#### OnEnable() |
| 216 | + |
| 217 | +##### Declaration |
| 218 | + |
| 219 | +``` |
| 220 | +protected virtual void OnEnable() |
| 221 | +``` |
| 222 | + |
| 223 | +#### UnbindAngularVelocityActions() |
| 224 | + |
| 225 | +Unbinds the velocity performed and canceled actions from the processing methods. |
| 226 | + |
| 227 | +##### Declaration |
| 228 | + |
| 229 | +``` |
| 230 | +protected virtual void UnbindAngularVelocityActions() |
| 231 | +``` |
| 232 | + |
| 233 | +#### UnbindVelocityActions() |
| 234 | + |
| 235 | +Unbinds the velocity performed and canceled actions from the processing methods. |
| 236 | + |
| 237 | +##### Declaration |
| 238 | + |
| 239 | +``` |
| 240 | +protected virtual void UnbindVelocityActions() |
| 241 | +``` |
| 242 | + |
| 243 | +#### VelocityActionCanceled(InputAction.CallbackContext) |
| 244 | + |
| 245 | +Processes the context when the velocity InputActionProperty is canceled. |
| 246 | + |
| 247 | +##### Declaration |
| 248 | + |
| 249 | +``` |
| 250 | +protected virtual void VelocityActionCanceled(InputAction.CallbackContext context) |
| 251 | +``` |
| 252 | + |
| 253 | +##### Parameters |
| 254 | + |
| 255 | +| Type | Name | Description | |
| 256 | +| --- | --- | --- | |
| 257 | +| InputAction.CallbackContext | context | The action context data. | |
| 258 | + |
| 259 | +#### VelocityActionPerformed(InputAction.CallbackContext) |
| 260 | + |
| 261 | +Processes the context when the velocity InputActionProperty is performed. |
| 262 | + |
| 263 | +##### Declaration |
| 264 | + |
| 265 | +``` |
| 266 | +protected virtual void VelocityActionPerformed(InputAction.CallbackContext context) |
| 267 | +``` |
| 268 | + |
| 269 | +##### Parameters |
| 270 | + |
| 271 | +| Type | Name | Description | |
| 272 | +| --- | --- | --- | |
| 273 | +| InputAction.CallbackContext | context | The action context data. | |
| 274 | + |
| 275 | +[Tilia.Input.UnityInputSystem.Tracking.Velocity]: README.md |
| 276 | +[Inheritance]: #Inheritance |
| 277 | +[Namespace]: #Namespace |
| 278 | +[Syntax]: #Syntax |
| 279 | +[Fields]: #Fields |
| 280 | +[currentAngularVelocity]: #currentAngularVelocity |
| 281 | +[currentVelocity]: #currentVelocity |
| 282 | +[Properties]: #Properties |
| 283 | +[AngularVelocitySource]: #AngularVelocitySource |
| 284 | +[VelocitySource]: #VelocitySource |
| 285 | +[Methods]: #Methods |
| 286 | +[AngularVelocityActionCanceled(InputAction.CallbackContext)]: #AngularVelocityActionCanceledInputAction.CallbackContext |
| 287 | +[AngularVelocityActionPerformed(InputAction.CallbackContext)]: #AngularVelocityActionPerformedInputAction.CallbackContext |
| 288 | +[BindAngularVelocityActions()]: #BindAngularVelocityActions |
| 289 | +[BindVelocityActions()]: #BindVelocityActions |
| 290 | +[DisableAction(InputActionProperty)]: #DisableActionInputActionProperty |
| 291 | +[DoGetAngularVelocity()]: #DoGetAngularVelocity |
| 292 | +[DoGetVelocity()]: #DoGetVelocity |
| 293 | +[EnableAction(InputActionProperty)]: #EnableActionInputActionProperty |
| 294 | +[OnDisable()]: #OnDisable |
| 295 | +[OnEnable()]: #OnEnable |
| 296 | +[UnbindAngularVelocityActions()]: #UnbindAngularVelocityActions |
| 297 | +[UnbindVelocityActions()]: #UnbindVelocityActions |
| 298 | +[VelocityActionCanceled(InputAction.CallbackContext)]: #VelocityActionCanceledInputAction.CallbackContext |
| 299 | +[VelocityActionPerformed(InputAction.CallbackContext)]: #VelocityActionPerformedInputAction.CallbackContext |
0 commit comments