Photon Quantum 3.0.0

Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
Quantum.CharacterController3DConfig Class Reference

The configuration values of the CharacterController3D. Use this to setup the kcc shape size and tune its movement and collision detection. More...

Public Member Functions

override void Loaded (IResourceManager assets, Native.Allocator allocator)
 

Public Attributes

FP Acceleration = 25
 How fast the character controller accelerates. More...
 
Boolean AirControl = true
 Whether the character controller should be controllable while not grounded. More...
 
FP BaseJumpImpulse = 4
 The default jump impulse for the character controller. More...
 
FP Braking = FP._10
 How fast the character controller decelerates. More...
 
FP Extent = FP._0_10
 The extent value used for the character controller. More...
 
FPVector3 Gravity = new FPVector3(FP._0, -FP._10, FP._0)
 The gravity applied to the character controller. More...
 
LayerMask LayerMask = -1
 Represents a bitmask for determining which layers an object is on or interacts with. More...
 
Int32 MaxContacts = 8
 The maximum number of contacts considered during character controller movement. More...
 
FP MaxPenetration = FP._0_05
 The maximum allowed penetration distance for the character controller. More...
 
FP MaxSlope = 60
 The maximum slope the character controller can walk on. More...
 
FP MaxSlopeSpeed = FP._5
 The maximum speed the character controller can move on a slope. More...
 
FP MaxSpeed = 3
 The maximum speed the character controller can move. More...
 
FPVector3 Offset = new FPVector3(FP._0, FP._0_50, FP._0)
 The offset position of the character controller in relation to its transform position. More...
 
FP PenetrationCorrection = FP._0_50
 The amount of correction applied to the penetration of a character controller. More...
 
FP Radius = FP._0_50
 The radius of the character controller. More...
 
Boolean UseManifoldNormal = false
 Whether the character controller should use the manifold normal for collision resolution. More...
 

Static Public Attributes

const long DEFAULT_ID = (long)DefaultAssetGuids.CharacterController3DConfig
 Obsolete. Use the default asset that is set inside the SimulationConfig instead. More...
 

Properties

FPVector3 GravityNormalized [get]
 Normalized Gravity, cached when the asset is loaded. More...
 
FP GravityStrength [get]
 Magnitude of the config Gravity, cached when the asset is loaded. More...
 

Detailed Description

The configuration values of the CharacterController3D. Use this to setup the kcc shape size and tune its movement and collision detection.

Member Data Documentation

◆ DEFAULT_ID

const long Quantum.CharacterController3DConfig.DEFAULT_ID = (long)DefaultAssetGuids.CharacterController3DConfig
static

Obsolete. Use the default asset that is set inside the SimulationConfig instead.

◆ Offset

FPVector3 Quantum.CharacterController3DConfig.Offset = new FPVector3(FP._0, FP._0_50, FP._0)

The offset position of the character controller in relation to its transform position.

◆ Radius

FP Quantum.CharacterController3DConfig.Radius = FP._0_50

The radius of the character controller.

◆ MaxPenetration

FP Quantum.CharacterController3DConfig.MaxPenetration = FP._0_05

The maximum allowed penetration distance for the character controller.

◆ PenetrationCorrection

FP Quantum.CharacterController3DConfig.PenetrationCorrection = FP._0_50

The amount of correction applied to the penetration of a character controller.

◆ Extent

FP Quantum.CharacterController3DConfig.Extent = FP._0_10

The extent value used for the character controller.

◆ MaxContacts

Int32 Quantum.CharacterController3DConfig.MaxContacts = 8

The maximum number of contacts considered during character controller movement.

◆ LayerMask

LayerMask Quantum.CharacterController3DConfig.LayerMask = -1

Represents a bitmask for determining which layers an object is on or interacts with.

◆ UseManifoldNormal

Boolean Quantum.CharacterController3DConfig.UseManifoldNormal = false

Whether the character controller should use the manifold normal for collision resolution.

◆ AirControl

Boolean Quantum.CharacterController3DConfig.AirControl = true

Whether the character controller should be controllable while not grounded.

◆ Acceleration

FP Quantum.CharacterController3DConfig.Acceleration = 25

How fast the character controller accelerates.

◆ Braking

FP Quantum.CharacterController3DConfig.Braking = FP._10

How fast the character controller decelerates.

◆ BaseJumpImpulse

FP Quantum.CharacterController3DConfig.BaseJumpImpulse = 4

The default jump impulse for the character controller.

◆ MaxSpeed

FP Quantum.CharacterController3DConfig.MaxSpeed = 3

The maximum speed the character controller can move.

◆ Gravity

FPVector3 Quantum.CharacterController3DConfig.Gravity = new FPVector3(FP._0, -FP._10, FP._0)

The gravity applied to the character controller.

◆ MaxSlope

FP Quantum.CharacterController3DConfig.MaxSlope = 60

The maximum slope the character controller can walk on.

◆ MaxSlopeSpeed

FP Quantum.CharacterController3DConfig.MaxSlopeSpeed = FP._5

The maximum speed the character controller can move on a slope.

Property Documentation

◆ GravityStrength

FP Quantum.CharacterController3DConfig.GravityStrength
get

Magnitude of the config Gravity, cached when the asset is loaded.

◆ GravityNormalized

FPVector3 Quantum.CharacterController3DConfig.GravityNormalized
get

Normalized Gravity, cached when the asset is loaded.