Photon Fusion 1.1.12

Public Attributes | Properties | List of all members
NetworkCharacterController.Configuration Class Reference

Configuration data used both by ComputeRawMovement and the prototype-grade Move and ComputeRawSteering methods. More...

Public Attributes

float Acceleration = 10
 When moving, velocity is incremented by this factor over time (used only by Move and ComputeRawSteering). More...
 
bool AirControl
 Should player keep control when in FreeFall (used only by Move and ComputeRawSteering). More...
 
float AllowedPenetration = 0.1f
 Helps stabilize grounded state when walking over slightly bumpy geometry. Influences collision and trigger callbacks. More...
 
float BaseJumpImpulse = 5
 Vertical impulse applied when Jump() is called without an overhauling impulse passed (used only by Jump()). More...
 
float Braking = 10
 When stopped moving, velocity is decremented by this factor over time (used only by Move and ComputeRawSteering). More...
 
BumpBehavior BumpBehavior = BumpBehavior.IgnoreOnStanding
 NetworkCharacterController.Configuration.BumpBehavior for collisions with this Character Controller. More...
 
LayerMask LayerMask = -1
 Only colliders in this layermask will be considered by the movement query. More...
 
float MaxSlope = 60
 Horizontal velocity is clamped by this magnitude (used only by Move and ComputeRawSteering). More...
 
float MaxSlopeSpeed = 5
 Slope-fall velocity is clamped by this magnitude (used only by Move and ComputeRawSteering). More...
 
float MaxSpeed = 4
 Horizontal velocity is clamped by this magnitude (used only by Move and ComputeRawSteering). This will only be used to initialize the corresponding MaxSpeed networked property, which can be changed in runtime. More...
 
float PenetrationCorrection = 0.5f
 How much penetration to correct each frame (used only by Move and ComputeRawSteering) More...
 
QueryTriggerInteraction TriggerInteraction = QueryTriggerInteraction.UseGlobal
 Whereas to also compute triggers or not. More...
 

Properties

Vector3 Gravity [get, set]
 Non-networked gravity (used only by Move and ComputeRawSteering). In case variable gravity is required, the recommendation is to implement custom Move and RawSteering methods. More...
 

Detailed Description

Configuration data used both by ComputeRawMovement and the prototype-grade Move and ComputeRawSteering methods.

Member Data Documentation

◆ Acceleration

float Acceleration = 10

When moving, velocity is incremented by this factor over time (used only by Move and ComputeRawSteering).

◆ AirControl

bool AirControl

Should player keep control when in FreeFall (used only by Move and ComputeRawSteering).

◆ AllowedPenetration

float AllowedPenetration = 0.1f

Helps stabilize grounded state when walking over slightly bumpy geometry. Influences collision and trigger callbacks.

◆ BaseJumpImpulse

float BaseJumpImpulse = 5

Vertical impulse applied when Jump() is called without an overhauling impulse passed (used only by Jump()).

◆ Braking

float Braking = 10

When stopped moving, velocity is decremented by this factor over time (used only by Move and ComputeRawSteering).

◆ BumpBehavior

NetworkCharacterController.Configuration.BumpBehavior for collisions with this Character Controller.

◆ LayerMask

LayerMask LayerMask = -1

Only colliders in this layermask will be considered by the movement query.

◆ MaxSlope

float MaxSlope = 60

Horizontal velocity is clamped by this magnitude (used only by Move and ComputeRawSteering).

◆ MaxSlopeSpeed

float MaxSlopeSpeed = 5

Slope-fall velocity is clamped by this magnitude (used only by Move and ComputeRawSteering).

◆ MaxSpeed

float MaxSpeed = 4

Horizontal velocity is clamped by this magnitude (used only by Move and ComputeRawSteering). This will only be used to initialize the corresponding MaxSpeed networked property, which can be changed in runtime.

◆ PenetrationCorrection

float PenetrationCorrection = 0.5f

How much penetration to correct each frame (used only by Move and ComputeRawSteering)

◆ TriggerInteraction

QueryTriggerInteraction TriggerInteraction = QueryTriggerInteraction.UseGlobal

Whereas to also compute triggers or not.

Property Documentation

◆ Gravity

Vector3 Gravity
getset

Non-networked gravity (used only by Move and ComputeRawSteering). In case variable gravity is required, the recommendation is to implement custom Move and RawSteering methods.