GFX
  • Docs
  • API
Search Results for

    Show / Hide Table of Contents
    • Genesis.Core
      • AssetManager
      • Game
      • GameElement
      • GameEventHandler
      • GenesisWindow
      • IGameBehavior
      • Input
      • Layer
      • Light
      • Scene
      • Scene3D
      • SceneEventHandler
      • SceneSizeEvenHandler
      • Storage
      • Utils
    • Genesis.Core.Behaviors
      • AnimationBehavior
      • CameraFlags
      • CharacterController2D
      • ControllerPreset
      • MoveDirection
      • MovementFlags
      • SpriteMovementController
    • Genesis.Core.Behaviors.Physics2D
      • BufferedSpriteCollider
      • PhysicsBox2D
      • PhysicsPolygon2D
      • Rigidbody2D
    • Genesis.Core.Behaviors.Physics3D
      • BoxCollider
      • CapsuleCollider
      • ConvexHullBehavior
      • QubeConvexHull
      • SphereCollider
      • StaticMeshBehavior
    • Genesis.Core.Behaviors._3D
      • Stance
      • ThirdpersonCharacterController
    • Genesis.Core.GameElements
      • BufferedSprite
      • CameraElement
      • Element3D
      • Empty
      • Model
      • ParticleBuffers
      • ParticleDeffinition
      • ParticleEmitter
      • Qube
      • RectElement
      • Skybox
      • Sprite
      • SpriteShapeDeffinition
      • Terrain2D
      • Terrain3D
      • TerrainData
    • Genesis.Graphics
      • Animation
      • Camera
      • CameraType
      • Face
      • Font
      • Framebuffer
      • Glyphe
      • IRenderDevice
      • Material
      • MaterialBuffer
      • Mesh
      • PerspectiveCamera
      • Shader
      • ShaderProgram
      • TexCoords
      • Texture
      • Viewport
    • Genesis.Graphics.Animation3D
      • Animation
      • Animator
      • AssimpNodeData
      • Bone
      • KeyPosition
      • KeyRotation
      • KeyScale
      • ModelMesh
      • boneinfo
      • vertex
    • Genesis.Graphics.Physics
      • BulletDebugRenderer
    • Genesis.Graphics.RenderDevice
      • ClassicGL
      • GLRenderer
    • Genesis.Graphics.Shaders.OpenGL
      • AnimatedModelShader
      • BasicShader
      • DiffuseLightning
      • DiffuseNormalLightning
      • DiffuseNormalShader
      • DiffuseShader
      • DiffuseSolidShader
      • MVPRectShader
      • MVPShader
      • MVPSolidShader
      • ParticleShader
      • ScreenShader
      • SkyboxShader
      • SpriteShader
      • TerrainShader
      • WireframeShader
    • Genesis.Graphics.Shapes
      • BufferedSpriteShape
      • FrameShape
      • GlypheShape
      • LineShape
      • PlaneShape
      • QubeShape
      • RectShape
      • Shape
      • SpriteShape
    • Genesis.Math
      • Matrix4x4
      • NoisePoint
      • PerlinNoise
      • Rect
      • Vec3
    • Genesis.Physics
      • Aabb
      • HitResult
      • MatrixSet
      • MouseRay2
      • PhysicHandler
      • PhysicHandlerEvent
      • PhysicPropeterys
      • PhysicsBehavior
      • PhysicsBehaviorEvent
      • PhysicsHandler2D
      • PhysicsHandler3D
      • Raycast
    • Genesis.UI
      • Canvas
      • ImageButton
      • Label
      • ListItem
      • ListItemBehavior
      • ListSelector
      • ListSelectorBehavior
      • Panel
      • ProgressBar
      • UIEvent
      • UIParseHandler
      • UIParser
      • Widget

    Class ThirdpersonCharacterController

    Controls the behavior of a third-person character in a game.

    Inheritance
    object
    IGameBehavior
    ThirdpersonCharacterController
    Inherited Members
    IGameBehavior.Parent
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Genesis.Core.Behaviors._3D
    Assembly: Genesis.dll
    Syntax
    public class ThirdpersonCharacterController : IGameBehavior

    Constructors

    ThirdpersonCharacterController()

    Initializes a new instance of the ThirdpersonCharacterController class.

    Declaration
    public ThirdpersonCharacterController()

    Properties

    Collider

    Gets or sets the collider for the character.

    Declaration
    public CapsuleCollider Collider { get; set; }
    Property Value
    Type Description
    CapsuleCollider

    IdleAnimation

    Gets or sets the name of the idle animation.

    Declaration
    public string IdleAnimation { get; set; }
    Property Value
    Type Description
    string

    InvertMouse

    Gets or sets a value indicating whether the mouse movement is inverted.

    Declaration
    public bool InvertMouse { get; set; }
    Property Value
    Type Description
    bool

    IsColliding

    Gets or sets a value indicating whether the character is colliding.

    Declaration
    public bool IsColliding { get; set; }
    Property Value
    Type Description
    bool

    IsRunning

    Gets or sets a value indicating whether the character is running.

    Declaration
    public bool IsRunning { get; set; }
    Property Value
    Type Description
    bool

    JumpSpeed

    Gets or sets the speed of jumping.

    Declaration
    public float JumpSpeed { get; set; }
    Property Value
    Type Description
    float

    RunAnimation

    Gets or sets the name of the running animation.

    Declaration
    public string RunAnimation { get; set; }
    Property Value
    Type Description
    string

    RunSpeed

    Gets or sets the speed of running.

    Declaration
    public float RunSpeed { get; set; }
    Property Value
    Type Description
    float

    Stance

    Gets or sets the stance of the character.

    Declaration
    public Stance Stance { get; set; }
    Property Value
    Type Description
    Stance

    WalkAnimation

    Gets or sets the name of the walking animation.

    Declaration
    public string WalkAnimation { get; set; }
    Property Value
    Type Description
    string

    WalkSpeed

    Gets or sets the speed of walking.

    Declaration
    public float WalkSpeed { get; set; }
    Property Value
    Type Description
    float

    Methods

    CreatePhysics(PhysicHandler, Vec3, float, float, float)

    Creates the physics for the character.

    Declaration
    public void CreatePhysics(PhysicHandler handler, Vec3 offset, float radius, float height, float mass)
    Parameters
    Type Name Description
    PhysicHandler handler

    The physics handler.

    Vec3 offset

    The offset.

    float radius

    The radius.

    float height

    The height.

    float mass

    The mass.

    CreatePhysics(PhysicHandler, float, float, float)

    Creates the physics for the character.

    Declaration
    public void CreatePhysics(PhysicHandler handler, float radius, float height, float mass)
    Parameters
    Type Name Description
    PhysicHandler handler

    The physics handler.

    float radius

    The radius.

    float height

    The height.

    float mass

    The mass.

    IsAirborn()

    Determines whether the character is airborne.

    Declaration
    public bool IsAirborn()
    Returns
    Type Description
    bool

    true if the character is airborne; otherwise, false.

    OnDestroy(Game, GameElement)

    Called when the game element is destroyed.

    Declaration
    public override void OnDestroy(Game game, GameElement parent)
    Parameters
    Type Name Description
    Game game

    The game instance.

    GameElement parent

    The parent game element.

    Overrides
    IGameBehavior.OnDestroy(Game, GameElement)

    OnInit(Game, GameElement)

    Called when the behavior is initialized.

    Declaration
    public override void OnInit(Game game, GameElement parent)
    Parameters
    Type Name Description
    Game game

    The game instance.

    GameElement parent

    The parent game element.

    Overrides
    IGameBehavior.OnInit(Game, GameElement)

    OnRender(Game, GameElement)

    Called when the game element should be rendered.

    Declaration
    public override void OnRender(Game game, GameElement parent)
    Parameters
    Type Name Description
    Game game

    The game instance.

    GameElement parent

    The parent game element.

    Overrides
    IGameBehavior.OnRender(Game, GameElement)

    OnUpdate(Game, GameElement)

    Called when the game element should be updated.

    Declaration
    public override void OnUpdate(Game game, GameElement parent)
    Parameters
    Type Name Description
    Game game

    The game instance.

    GameElement parent

    The parent game element.

    Overrides
    IGameBehavior.OnUpdate(Game, GameElement)
    In this article
    Back to top Generated by DocFX