Class BulletCharacterController3D
The BulletCollisionObject3D implements Bullet collision object for Evergine.
Namespace: Evergine.Bullet
Assembly: Evergine.Bullet.dll
Syntax
public class BulletCharacterController3D : BulletPhysicAction3D, ICharacterController3D, IPhysicAction3D
Constructors
BulletCharacterController3D(BulletPhysicManager3D, BulletGhostBody3D, float)
Initializes a new instance of the BulletCharacterController3D class.
Declaration
public BulletCharacterController3D(BulletPhysicManager3D simulation3D, BulletGhostBody3D ghostBody, float stepHeigh)
Parameters
Type | Name | Description |
---|---|---|
BulletPhysicManager3D | simulation3D | The bullet world. |
BulletGhostBody3D | ghostBody | The definition of static body. |
float | stepHeigh | The step heigh. |
Properties
FallSpeed
Gets or sets the fall speed.
Declaration
public float FallSpeed { get; set; }
Property Value
Type | Description |
---|---|
float |
Gravity
Gets or sets the character gravity.
Declaration
public float Gravity { get; set; }
Property Value
Type | Description |
---|---|
float |
JumpSpeed
Gets or sets the jump speed.
Declaration
public float JumpSpeed { get; set; }
Property Value
Type | Description |
---|---|
float |
MaxSlope
Gets or sets the max slope.
Declaration
public float MaxSlope { get; set; }
Property Value
Type | Description |
---|---|
float |
OnGround
Gets a value indicating whether this character is on the ground.
Declaration
public bool OnGround { get; }
Property Value
Type | Description |
---|---|
bool |
StepHeight
Gets or sets the fall speed.
Declaration
public float StepHeight { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
Dispose()
Dispose this instance.
Declaration
public override void Dispose()
Overrides
Jump()
Jumps this character.
Declaration
public void Jump()
Jump(Vector3)
Jumps this character.
Declaration
public void Jump(Vector3 jumpDirection)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | jumpDirection | The direction. |
SetVelocity(Vector3)
Sets the character velocity.
Declaration
public void SetVelocity(Vector3 velocity)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | velocity | The velociy vector. |
Teleport(Vector3)
Teleports the specified character.
Declaration
public void Teleport(Vector3 newPosition)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | newPosition | The new position. |