Class CustomKinematicCharacterController
Inheritance
CustomKinematicCharacterController
Implements
ICharacterController
IAction
Assembly: Evergine.Bullet.dll
Syntax
public class CustomKinematicCharacterController : ICharacterController, IAction
Constructors
CustomKinematicCharacterController(PairCachingGhostObject, ConvexShape, float, int)
Declaration
public CustomKinematicCharacterController(PairCachingGhostObject ghostObject, ConvexShape convexShape, float stepHeight, int upAxis = 1)
Parameters
Type |
Name |
Description |
PairCachingGhostObject |
ghostObject |
|
ConvexShape |
convexShape |
|
float |
stepHeight |
|
int |
upAxis |
|
Fields
bounce_fix
Declaration
protected bool bounce_fix
Field Value
full_drop
Declaration
Field Value
m_addedMargin
Declaration
protected float m_addedMargin
Field Value
m_convexShape
Declaration
protected ConvexShape m_convexShape
Field Value
Type |
Description |
ConvexShape |
|
m_currentPosition
Declaration
protected Vector3 m_currentPosition
Field Value
m_fallSpeed
Declaration
protected float m_fallSpeed
Field Value
m_ghostObject
Declaration
protected PairCachingGhostObject m_ghostObject
Field Value
Type |
Description |
PairCachingGhostObject |
|
m_halfHeight
Declaration
protected float m_halfHeight
Field Value
m_interpolateUp
Declaration
protected bool m_interpolateUp
Field Value
m_jumpSpeed
Declaration
protected float m_jumpSpeed
Field Value
m_manifoldArray
Declaration
protected AlignedManifoldArray m_manifoldArray
Field Value
Type |
Description |
AlignedManifoldArray |
|
m_maxJumpHeight
Declaration
protected float m_maxJumpHeight
Field Value
m_maxSlopeCosine
Declaration
protected float m_maxSlopeCosine
Field Value
m_maxSlopeRadians
Declaration
protected float m_maxSlopeRadians
Field Value
m_normalizedDirection
Declaration
protected Vector3 m_normalizedDirection
Field Value
m_stepHeight
Declaration
protected float m_stepHeight
Field Value
m_targetPosition
Declaration
protected Vector3 m_targetPosition
Field Value
Declaration
protected bool m_touchingContact
Field Value
m_touchingNormal
Declaration
protected Vector3 m_touchingNormal
Field Value
m_turnAngle
Declaration
protected float m_turnAngle
Field Value
m_upAxis
Declaration
Field Value
m_useGhostObjectSweepTest
Declaration
protected bool m_useGhostObjectSweepTest
Field Value
m_useWalkDirection
Declaration
protected bool m_useWalkDirection
Field Value
m_velocityTimeInterval
Declaration
protected float m_velocityTimeInterval
Field Value
m_verticalOffset
Declaration
protected float m_verticalOffset
Field Value
m_verticalVelocity
Declaration
protected float m_verticalVelocity
Field Value
m_walkDirection
Declaration
protected Vector3 m_walkDirection
Field Value
m_wasJumping
Declaration
protected bool m_wasJumping
Field Value
m_wasOnGround
Declaration
protected bool m_wasOnGround
Field Value
upAxisDirection
Declaration
protected static Vector3[] upAxisDirection
Field Value
Properties
CanJump
Declaration
public bool CanJump { get; }
Property Value
GhostObject
Declaration
public PairCachingGhostObject GhostObject { get; }
Property Value
Type |
Description |
PairCachingGhostObject |
|
Gravity
Declaration
public float Gravity { get; set; }
Property Value
MaxSlope
Declaration
public float MaxSlope { get; set; }
Property Value
OnGround
Declaration
public bool OnGround { get; }
Property Value
Methods
ComputeReflectionDirection(ref Vector3, ref Vector3)
Declaration
protected Vector3 ComputeReflectionDirection(ref Vector3 direction, ref Vector3 normal)
Parameters
Returns
DebugDraw(DebugDraw)
Declaration
public void DebugDraw(DebugDraw debugDrawer)
Parameters
Type |
Name |
Description |
DebugDraw |
debugDrawer |
|
GetNormalizedVector(ref Vector3)
Declaration
public static Vector3 GetNormalizedVector(ref Vector3 v)
Parameters
Returns
Jump()
Declaration
Jump(ref Vector3)
Declaration
public void Jump(ref Vector3 v)
Parameters
ParallelComponent(ref Vector3, ref Vector3)
Declaration
protected Vector3 ParallelComponent(ref Vector3 direction, ref Vector3 normal)
Parameters
Returns
PerpindicularComponent(ref Vector3, ref Vector3)
Declaration
protected Vector3 PerpindicularComponent(ref Vector3 direction, ref Vector3 normal)
Parameters
Returns
PlayerStep(CollisionWorld, float)
Declaration
public void PlayerStep(CollisionWorld collisionWorld, float dt)
Parameters
Type |
Name |
Description |
CollisionWorld |
collisionWorld |
|
float |
dt |
|
PreStep(CollisionWorld)
Declaration
public void PreStep(CollisionWorld collisionWorld)
Parameters
Type |
Name |
Description |
CollisionWorld |
collisionWorld |
|
RecoverFromPenetration(CollisionWorld)
Declaration
protected bool RecoverFromPenetration(CollisionWorld collisionWorld)
Parameters
Type |
Name |
Description |
CollisionWorld |
collisionWorld |
|
Returns
Reset(CollisionWorld)
Declaration
public void Reset(CollisionWorld collisionWorld)
Parameters
Type |
Name |
Description |
CollisionWorld |
collisionWorld |
|
SetFallSpeed(float)
Declaration
public void SetFallSpeed(float fallSpeed)
Parameters
Type |
Name |
Description |
float |
fallSpeed |
|
SetJumpSpeed(float)
Declaration
public void SetJumpSpeed(float jumpSpeed)
Parameters
Type |
Name |
Description |
float |
jumpSpeed |
|
SetMaxJumpHeight(float)
Declaration
public void SetMaxJumpHeight(float maxJumpHeight)
Parameters
Type |
Name |
Description |
float |
maxJumpHeight |
|
SetUpAxis(int)
Declaration
public void SetUpAxis(int axis)
Parameters
Type |
Name |
Description |
int |
axis |
|
SetUpInterpolate(bool)
Declaration
public void SetUpInterpolate(bool v)
Parameters
Type |
Name |
Description |
bool |
v |
|
SetUseGhostSweepTest(bool)
Declaration
public void SetUseGhostSweepTest(bool useGhostObjectSweepTest)
Parameters
Type |
Name |
Description |
bool |
useGhostObjectSweepTest |
|
SetVelocityForTimeInterval(Vector3, float)
Declaration
public void SetVelocityForTimeInterval(Vector3 velocity, float timeInterval)
Parameters
SetVelocityForTimeInterval(ref Vector3, float)
Declaration
public void SetVelocityForTimeInterval(ref Vector3 velocity, float timeInterval)
Parameters
SetWalkDirection(Vector3)
Declaration
public virtual void SetWalkDirection(Vector3 walkDirection)
Parameters
Type |
Name |
Description |
Vector3 |
walkDirection |
|
SetWalkDirection(ref Vector3)
Declaration
public virtual void SetWalkDirection(ref Vector3 walkDirection)
Parameters
Type |
Name |
Description |
Vector3 |
walkDirection |
|
StepDown(CollisionWorld, float)
Declaration
protected void StepDown(CollisionWorld collisionWorld, float dt)
Parameters
Type |
Name |
Description |
CollisionWorld |
collisionWorld |
|
float |
dt |
|
StepForwardAndStrafe(CollisionWorld, ref Vector3)
Declaration
protected void StepForwardAndStrafe(CollisionWorld collisionWorld, ref Vector3 walkMove)
Parameters
Type |
Name |
Description |
CollisionWorld |
collisionWorld |
|
Vector3 |
walkMove |
|
StepUp(CollisionWorld)
Declaration
protected void StepUp(CollisionWorld collisionWorld)
Parameters
Type |
Name |
Description |
CollisionWorld |
collisionWorld |
|
UpdateAction(CollisionWorld, float)
Declaration
public virtual void UpdateAction(CollisionWorld collisionWorld, float deltaTime)
Parameters
Type |
Name |
Description |
CollisionWorld |
collisionWorld |
|
float |
deltaTime |
|
UpdateTargetPositionBasedOnCollision(ref Vector3, float, float)
Declaration
protected void UpdateTargetPositionBasedOnCollision(ref Vector3 hitNormal, float tangentMag, float normalMag)
Parameters
Warp(ref Vector3)
Declaration
public void Warp(ref Vector3 origin)
Parameters
Type |
Name |
Description |
Vector3 |
origin |
|
Implements
BulletSharp.ICharacterController
BulletSharp.IAction
Extension Methods