C# Class Axiom.Samples.CharacterSample.SinbadCharacterController

Datei anzeigen Open project: WolfgangSt/axiom Class Usage Examples

Public Properties

Property Type Description
AnimFadeSpeed Real
Gravity Real
JumpAcceleration Real
TurnSpeed Real

Protected Properties

Property Type Description
anims AnimationState[]
baseAnimID AnimationID
bodyEnt Axiom.Core.Entity
bodyNode Axiom.Core.SceneNode
camera Axiom.Core.Camera
cameraGoal Axiom.Core.SceneNode
cameraNode Axiom.Core.SceneNode
cameraPivot Axiom.Core.SceneNode
fadingIn bool[]
fadingOut bool[]
goalDirection Axiom.Math.Vector3
keyDirection Axiom.Math.Vector3
pivotPitch Real
sword1 Axiom.Core.Entity
sword2 Axiom.Core.Entity
swordTrail RibbonTrail
swordsDrawn bool
timer Real
topAnimID AnimationID
verticalVelocity Real

Public Methods

Method Description
AddTime ( Real deltaTime ) : void

InjectKeyDown ( SharpInputSystem e ) : void

InjectKeyUp ( SharpInputSystem e ) : void

InjectMouseDown ( SharpInputSystem e, SharpInputSystem id ) : void

InjectMouseMove ( SharpInputSystem e ) : void

SinbadCharacterController ( Camera cam ) : Axiom.Core

Private Methods

Method Description
FadeAnimations ( Real deltaTime ) : void

SetBaseAnimation ( AnimationID id ) : void

SetBaseAnimation ( AnimationID id, bool reset ) : void

/

SetTopAnimation ( AnimationID id ) : void

SetTopAnimation ( AnimationID id, bool reset ) : void

SetupAnimations ( ) : void

SetupBody ( SceneManager sceneMgr ) : void

SetupCamera ( Camera cam ) : void

UpdateAnimations ( Real deltaTime ) : void

UpdateBody ( Real deltaTime ) : void

UpdateCamera ( Real deltaTime ) : void

UpdateCameraGoal ( Real deltaYaw, Real deltaPitch, Real deltaZoom ) : void

Method Details

AddTime() public method

public AddTime ( Real deltaTime ) : void
deltaTime Real
return void

InjectKeyDown() public method

public InjectKeyDown ( SharpInputSystem e ) : void
e SharpInputSystem
return void

InjectKeyUp() public method

public InjectKeyUp ( SharpInputSystem e ) : void
e SharpInputSystem
return void

InjectMouseDown() public method

public InjectMouseDown ( SharpInputSystem e, SharpInputSystem id ) : void
e SharpInputSystem
id SharpInputSystem
return void

InjectMouseMove() public method

public InjectMouseMove ( SharpInputSystem e ) : void
e SharpInputSystem
return void

SinbadCharacterController() public method

public SinbadCharacterController ( Camera cam ) : Axiom.Core
cam Axiom.Core.Camera
return Axiom.Core

Property Details

AnimFadeSpeed public_oe property

animation crossfade speed in % of full weight per second
public Real AnimFadeSpeed
return Real

Gravity public_oe property

gravity in downward units per squared second
public Real Gravity
return Real

JumpAcceleration public_oe property

character jump acceleration in upward units per squared second
public Real JumpAcceleration
return Real

TurnSpeed public_oe property

character turning in degrees per second
public Real TurnSpeed
return Real

anims protected_oe property

// master animation list
protected AnimationState[] anims
return AnimationState[]

baseAnimID protected_oe property

current base (full- or lower-body) animation
protected AnimationID baseAnimID
return AnimationID

bodyEnt protected_oe property

protected Entity,Axiom.Core bodyEnt
return Axiom.Core.Entity

bodyNode protected_oe property

protected SceneNode,Axiom.Core bodyNode
return Axiom.Core.SceneNode

camera protected_oe property

protected Camera,Axiom.Core camera
return Axiom.Core.Camera

cameraGoal protected_oe property

protected SceneNode,Axiom.Core cameraGoal
return Axiom.Core.SceneNode

cameraNode protected_oe property

protected SceneNode,Axiom.Core cameraNode
return Axiom.Core.SceneNode

cameraPivot protected_oe property

protected SceneNode,Axiom.Core cameraPivot
return Axiom.Core.SceneNode

fadingIn protected_oe property

which animations are fading in
protected bool[] fadingIn
return bool[]

fadingOut protected_oe property

which animations are fading out
protected bool[] fadingOut
return bool[]

goalDirection protected_oe property

actual intended direction in world-space
protected Vector3,Axiom.Math goalDirection
return Axiom.Math.Vector3

keyDirection protected_oe property

player's local intended direction based on WASD keys
protected Vector3,Axiom.Math keyDirection
return Axiom.Math.Vector3

pivotPitch protected_oe property

protected Real pivotPitch
return Real

sword1 protected_oe property

protected Entity,Axiom.Core sword1
return Axiom.Core.Entity

sword2 protected_oe property

protected Entity,Axiom.Core sword2
return Axiom.Core.Entity

swordTrail protected_oe property

protected RibbonTrail swordTrail
return RibbonTrail

swordsDrawn protected_oe property

protected bool swordsDrawn
return bool

timer protected_oe property

general timer to see how long animations have been playing
protected Real timer
return Real

topAnimID protected_oe property

current top (upper-body) animation
protected AnimationID topAnimID
return AnimationID

verticalVelocity protected_oe property

for jumping
protected Real verticalVelocity
return Real