MobController3D Class

Summary

The main 3D mob movement class. Manages movement properties such as speed and state, handles jumping and gravity and calls controller.Move() when DoMovement() is called.
graph BT Type-->Base0["AtavismMobController"] click Base0 "/docs/client_api_10.4.0/api/Atavism/AtavismMobController" Base0-->Base1["MonoBehaviour"] Type["MobController3D"] class Type type-node Derived0["AtavismMecanimMobController3D"]-->Type click Derived0 "/docs/client_api_10.4.0/api/Atavism/AtavismMecanimMobController3D" Derived1["AtavismLegacyAnimationMobController3D"]-->Type click Derived1 "/docs/client_api_10.4.0/api/Atavism/AtavismLegacyAnimationMobController3D"

Syntax

public abstract class MobController3D : AtavismMobController

Fields

Name Constant Value Summary
_capsuleCollider
alignSurface
checkUnderGround
colliderCenter
colliderHeight
colliderRadius
combatSpeed
controller
dead
desiredDisplacement
Inherited from AtavismMobController
enemyTargetDecal
fallingDistance
fallStartHeight
fallThreshold
followTerrain
Inherited from AtavismMobController
friendlyTargetDecal
groundDistance
groundDistanceLayer
groundHit
groundLayers
Inherited from AtavismMobController
inCombat
isFalling
isPlayer
Inherited from AtavismMobController
jumpHeight
jumping
Inherited from AtavismMobController
jumpingReachedApex
Inherited from AtavismMobController
lastDirection
Inherited from AtavismMobController
lastDirTimestamp
Inherited from AtavismMobController
lastJumpButtonTime
Inherited from AtavismMobController
lastLocTimestamp
Inherited from AtavismMobController
lastPosition
Inherited from AtavismMobController
maxGroundDistance
mount
Inherited from AtavismMobController
mountAnim
movement
MOVEMENT_STATE_FLYING 3
static
MOVEMENT_STATE_SWIMMING 2
static
MOVEMENT_STATE_WALKING 1
static
movementState
Inherited from AtavismMobController
mstate
nameHeight
Inherited from AtavismMobController
neutralTargetDecal
noMove
noMoveTime
oid
Inherited from AtavismMobController
pathInterpolator
Inherited from AtavismMobController
RayCastUpdateSeconds
rotatingDirection
Inherited from AtavismMobController
runSpeed
Inherited from AtavismMobController
runThreshold
skillMove
skillMoveSpeed
slideWhenOverSlopeLimit
state
syncOffset
Inherited from AtavismMobController
syncOffsetExpiration
Inherited from AtavismMobController
target
Inherited from AtavismMobController
walk
waterHeight
waterRegions
Inherited from AtavismMobController
wnomove

Properties

Name Value Summary
DesiredDisplacement Vector3
Inherited from AtavismMobController
FollowTerrain bool
Inherited from AtavismMobController
IsPlayer bool
Inherited from AtavismMobController
Jumping bool
Inherited from AtavismMobController
LastDirection Vector3
Inherited from AtavismMobController
LastJumpButtonTime float
Inherited from AtavismMobController
MobYaw float
Mount GameObject
Inherited from AtavismMobController
Movement Vector3
MovementState int
Inherited from AtavismMobController
Oid long
Inherited from AtavismMobController
PathInterpolator AtavismPathInterpolator
Inherited from AtavismMobController
RotatingDirection float
RotatingDirection float
Inherited from AtavismMobController
RunSpeed float
Inherited from AtavismMobController
SyncOffset Vector3
Inherited from AtavismMobController
SyncOffsetExpiration float
Inherited from AtavismMobController
Target long
Inherited from AtavismMobController
Walking bool

Methods

Name Value Summary
ApplyGravity() bool
Applies gravity to the player or mob. Returns whether or not the controller is grounded.
ApplyJumping() void
CalculateJumpVerticalSpeed(float) float
despawn() void
DoMovement() void
DsCombat(bool) void
GetSpeed() float
HandleAggressive(object, PropertyChangeEventArgs) void
HandleCombatState(object, PropertyChangeEventArgs) void
HandleDeadState(object, PropertyChangeEventArgs) void
HandleMount(object, PropertyChangeEventArgs) void
HandleNoMove(object, PropertyChangeEventArgs) void
HandleState(object, PropertyChangeEventArgs) void
HandleWaterHeight(object, PropertyChangeEventArgs) void
HasJumpReachedApex() bool
IsGrounded() bool
IsGroundedWithTimeout() bool
IsJumping() bool
IsMoving() bool
IsMovingBackwards() bool
LateUpdate() void
MovementStateHandler(object, PropertyChangeEventArgs) void
MoveMob() Vector3
MovePlayer() Vector3
MovingBack(bool) void
NoMove(float) void
ObjectNodeReady() void
OnControllerColliderHit(ControllerColliderHit) void
PlayAnimation(string, float) void
PlayAnimationFloat(string, float, float, float) void
Inherited from AtavismMobController
PlayAnimationInt(string, int, float, int) void
Inherited from AtavismMobController
PlayAnimationTrigger(string) void
Inherited from AtavismMobController
PlayMeleeAttackAnimation(string, string) void
PlayMeleeRecoilAnimation(string) void
SetWalk(bool) void
SkillMove(float) void
StartJump() void
StartTarget() void
Called when this mob is now targeted by the player.
StopTarget() void
Called when this mob is no longer targeted by the player
WaterRegionEntered(int) void
WaterRegionLeft(int) void