Click or drag to resize

Character

3DManual / Base Types / 3D / CharacterCharacter Input Processing

Character

Contents
Overview

Basic character class. An example scene is in 'Samples\Starter Content\Scenes\Character.scene'.

Screenshot999999999843.png
How to create

The character is created like other objects, the easiest way to do this is to drop it into the scene from the Resources Window.

Screenshot999999999846 2.png
Player control settings

In order to configure character control by a player, you need to configure the properties of the Game Mode object. This object is in the scene. The Object Controlled By Player property should point to the character. You also need to configure the type of camera using the Use Built In Camera property (for example, select First Person).

Screenshot999999999849 2.png

Now by launching the Player App, you can control the character in a first-person view.

Screenshot999999999852.png
Character customization

The character is customizable using properties and nested components. By default, the character contains a 3D model, a physical body, a component for controlling the player, and artificial intelligence.

Components
Properties

Using properties, you can turn on/off certain components of the character, for example, the ability to run. Having changed the 3D model, you will need to change the values of the properties in the Animation group.

Name Description
Height The height of the character.
Radius The radius of the collision capsule.
Walk Up Height The height to which the character can rise.
Position To Ground Height The distance from the character position to the ground.
Mass The mass of the character.
Max Slope Angle The maximum angle of the surface on which the character can stand.
Eye Position The position of the eyes relative to the position of the character.
Linear Damping On Ground The value of linear dumping when a character is standing on the ground.
Linear Damping When Fly The value of linear dumping when a character is flying.
Walk Forward Max Speed Maximum speed when walking forward.
Walk Backward Max Speed Maximum speed when walking backward.
Walk Side Max Speed Maximum speed when walking to a side.
Walk Force Physical force applied to the body for walking.
Run Support Can the character run.
Run Forward Max Speed Maximum speed when running forward.
Run Backward Max Speed Maximum speed when running backward.
Run Side Max Speed Maximum speed when running to a side.
Run Force Physical force applied to the body for running.
Fly Control Support Can a character control himself in flight.
Fly Control Max Speed Maximum speed of character control in flight.
Fly Control Force Physical force applied to the body for flying.
Jump Support Can the character jump.
Jump Speed The vertical speed of a jump.
Animate Whether to enable default animation method of the character.
Idle Animation Animation of character at rest.
Walk Animation Character walking animation.
Walk Animation Speed The multiplier for playing the walking animation depending on the speed of the character.
Run Animation Character running animation.
Run Animation Speed The multiplier for playing the running animation depending on the speed of the character.
Fly Animation Character flying animation.
Create a character as a separate file

The character can be created as a separate file with the extension .character.

Screenshot999999999855.png
Using a character in a previously created scene as a type

In order to create character types, it is not necessary to create a .character file. You can use the scene and the character created in it as a type. To do this, select the scene file in the Resources Window and click '+'. In the expanded list there will be scene objects that can be dragged and dropped into another scene.

Screenshot999999999857 2.png
See also
3DCharacter Input Processing