/
ControllerManager.yaml
208 lines (208 loc) · 6.59 KB
/
ControllerManager.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
name: ControllerManager
type: class
category:
memory_category: Instances
summary: |
Manages simulated motion control for its assigned
`Class.ControllerManager.RootPart` .
description: |
The `Class.ControllerManager` instance manages simulated motion control for
its assigned `Class.ControllerManager.RootPart`. It can be used to build a
physics-based character controller.
code_samples: []
inherits:
- Instance
tags: []
deprecation_message: ''
properties:
- name: ControllerManager.ActiveController
summary: |
The `Class.ControllerBase` that is set to be activated on the character.
description: |
The `Class.ControllerBase` that is set to be activated on the character.
It does not guarantee that the specified `Class.ControllerBase` is, in
fact, active. If the `Class.ControllerBase` cannot be activated for
whatever reason, such as being outside of the character's
`Class.WorldRoot` or no `Class.Part` being found to use as the floor for a
`Class.GroundController`, it will remain set and the
`Class.ControllerManager` will attempt to activate it in the next frame.
code_samples: []
type: ControllerBase
tags: []
deprecation_message: ''
security:
read: None
write: None
thread_safety: ReadSafe
category: Behavior
serialization:
can_load: true
can_save: true
- name: ControllerManager.BaseMoveSpeed
summary: |
The base linear movement speed used by all controllers.
description: |
The base linear movement speed used by all controllers. Controllers
individually customize speed by setting the
`Class.ControllerBase.MoveSpeedFactor` property.
code_samples: []
type: float
tags: []
deprecation_message: ''
security:
read: None
write: None
thread_safety: ReadSafe
category: Behavior
serialization:
can_load: true
can_save: true
- name: ControllerManager.BaseTurnSpeed
summary: |
The base angular turning speed used by all controllers.
description: |
The base angular turning speed used by all controllers to align the
character to face the desired direction.
code_samples: []
type: float
tags: []
deprecation_message: ''
security:
read: None
write: None
thread_safety: ReadSafe
category: Behavior
serialization:
can_load: true
can_save: true
- name: ControllerManager.ClimbSensor
summary: |
A reference to the sensor data used while a `Class.ClimbController` is
active.
description: |
A reference to the sensor data used while a `Class.ClimbController` is
active. A `Class.ClimbController` will use the
`Class.ControllerPartSensor.HitPart`,
`Class.ControllerPartSensor.HitFrame`, and
`Class.ControllerPartSensor.HitNormal` for climb movement computations.
Typically a `Class.ControllerPartSensor` set to `Enum.SensorMode.Ladder`
is used here. Otherwise, you can override the sensor's outputs to direct
what sensor data you want the `Class.ClimbController` to use.
code_samples: []
type: ControllerSensor
tags: []
deprecation_message: ''
security:
read: None
write: None
thread_safety: ReadSafe
category: Behavior
serialization:
can_load: true
can_save: true
- name: ControllerManager.FacingDirection
summary: |
The unit vector describing the desired direction to face.
description: |
The unit vector describing the desired direction to face. Aligns the
`Datatype.CFrame.LookVector|LookVector` of the
`Class.ControllerManager.RootPart` to this. Any `Datatype.Vector3`
assigned will be automatically unitized.
code_samples: []
type: Vector3
tags: []
deprecation_message: ''
security:
read: None
write: None
thread_safety: ReadSafe
category: Input
serialization:
can_load: true
can_save: true
- name: ControllerManager.GroundSensor
summary: |
A reference to the sensor data used while a `Class.GroundController` is
active.
description: |
A reference to the sensor data used while a `Class.GroundController` is
active. A `Class.GroundController` will use the
`Class.ControllerPartSensor.HitPart`,
`Class.ControllerPartSensor.HitFrame`, and
`Class.ControllerPartSensor.HitNormal` for ground movement computations.
Typically a `Class.ControllerPartSensor` set to `Enum.SensorMode.Floor` is
used here. Otherwise, you can override the sensor's outputs to direct what
sensor data you want the `Class.GroundController` to use.
code_samples: []
type: ControllerSensor
tags: []
deprecation_message: ''
security:
read: None
write: None
thread_safety: ReadSafe
category: Behavior
serialization:
can_load: true
can_save: true
- name: ControllerManager.MovingDirection
summary: |
The vector describing the desired direction to move in.
description: |
The vector describing the desired direction to move in, with a magnitude
between 0 and 1. This is multiplied by
`Class.ControllerManager.BaseMoveSpeed|BaseMoveSpeed` to determine a final
target move velocity. The `Class.ControllerManager.RootPart|RootPart` will
attempt to move in this direction based on the rules defined by the
`Class.ControllerManager.ActiveController|ActiveController`.
code_samples: []
type: Vector3
tags: []
deprecation_message: ''
security:
read: None
write: None
thread_safety: ReadSafe
category: Input
serialization:
can_load: true
can_save: true
- name: ControllerManager.RootPart
summary: |
The `Class.BasePart` where the controller's forces and torques are
applied.
description: |
The `Class.BasePart` where the controller's forces and torques are
applied. With a typical `Class.Humanoid`-based character, the
`Class.Humanoid.RootPart` is assigned as the
`Class.ControllerManager.RootPart`.
code_samples: []
type: BasePart
tags: []
deprecation_message: ''
security:
read: None
write: None
thread_safety: ReadSafe
category: Behavior
serialization:
can_load: true
can_save: true
- name: ControllerManager.UpDirection
summary: ''
description: ''
code_samples: []
type: Vector3
tags: []
deprecation_message: ''
security:
read: None
write: None
thread_safety: ReadSafe
category: Input
serialization:
can_load: true
can_save: true
methods: []
events: []
callbacks: []