The player controller with physical effects
Name |
Type |
Description |
Script Name |
Use Physical CCT |
Bool |
\ |
UsePhysicalCCT |
Slope Limit |
Float |
Objects placed on the slope exceeding this angle will slide down |
SlopeLimit |
Step Offset |
Float |
Only obstacles exceeding this height will have a blocking effect |
StepOffset |
Skin Width |
Float |
The depth of penetration into the capsule to prevent the character from getting stuck or jittering |
SkinWidth |
Min. Move Distance |
Float |
Movement with a distance shorter than this value will not be executed. It is recommended to set it to 0 unless there are special requirements. |
MinMoveDistance |
Center Offset |
Vector3 |
Read Only The offset value for the capsule collider |
CenterOffset |
Radius |
Float |
\ |
Radius |
Height |
Float |
\ |
Height |
Velocity (m/s) |
Vector3 |
Read Only
|
Velocity |
Max Speed |
Float |
\ |
MaxSpeed |
Gravity |
Vector3 |
The gravitational acceleration. Only affects the player controller. |
Gravity |
Mass (kg) |
Float |
\ |
Mass |
Is Sliding |
Bool |
Read Only
|
IsSliding |
Is Top Colliding |
Bool |
Read Only
|
IsTopColliding |
Is Side Colliding |
Bool |
Read Only
|
IsSideColliding |
Is Bottom Colliding |
Bool |
Read Only
|
IsBottomColliding |
Is Server-Driven |
Bool |
If false, then custom objects cannot be controlled by the APIs. |
IsServerDriven |
Use Custom Push Force |
Bool |
\ |
UseCustomPushForce |
Custom Push Force |
Float |
\ |
CustomPushForce |
Is Grounded |
Bool |
Read Only
|
IsGrounded |
Physical Layer |
Int |
Read Only The custom physical layer within a range of 0 to 31 |
PhysicalLayer |
Enable Rotate With Gravity |
Bool |
Read Only
|
EnableRotateWithGravity |
Name |
Description |
On Character Controller Hit |
Triggered when the player controller touches an entity. This is only triggered when the controller actively moves. |
Name |
Description |
Move CCT |
Displace the character controller once. If it acts on the player,the player must turn on the physical CCT for it to take effect. |
Move CCT[Obsolete] |
Deprecated |
Teleport CCT |
Move the character controller to the specified position. If it acts on the player,the player must turn on the physical CCT for it to take effect. |