Space Engineers
Public Member Functions | Static Public Member Functions | Properties | Events | List of all members
Sandbox.Engine.Physics.MyCharacterProxy Class Reference

Public Member Functions

 MyCharacterProxy (bool isDynamic, bool isCapsule, float characterWidth, float characterHeight, float crouchHeight, float ladderHeight, float headSize, float headHeight, Vector3 position, Vector3 up, Vector3 forward, float mass, MyPhysicsBody body, bool isOnlyVertical, float maxSlope, float maxImpulse, float maxSpeedRelativeToShip, float?maxForce=null, HkRagdoll ragDoll=null)
 
void Dispose ()
 
void SetCollisionFilterInfo (uint info)
 
void Activate (HkWorld world)
 
void Deactivate (HkWorld world)
 
HkCharacterStateType GetState ()
 
void SetState (HkCharacterStateType state)
 
void StepSimulation (float stepSizeInSeconds)
 
void UpdateSupport (float stepSizeInSeconds)
 
void SkipSimulation (MatrixD mat)
 
void EnableFlyingState (bool enable)
 
void EnableFlyingState (bool enable, float maxCharacterSpeed, float maxFlyingSpeed, float maxAcceleration)
 
void EnableLadderState (bool enable)
 
void EnableLadderState (bool enable, float maxCharacterSpeed, float maxAcceleration)
 
void SetShapeForCrouch (HkWorld world, bool enable)
 
void ApplyLinearImpulse (Vector3 impulse)
 
void ApplyAngularImpulse (Vector3 impulse)
 
void ApplyGravity (Vector3 gravity)
 
void SetRigidBodyTransform (Matrix m)
 
HkShape GetShape ()
 
HkShape GetCollisionShape ()
 
void SetSupportDistance (float distance)
 
void SetHardSupportDistance (float distance)
 
MyPhysicsBody GetPhysicsBody ()
 
HkEntity GetRigidBody ()
 
HkRigidBody GetHitRigidBody ()
 
Matrix GetRigidBodyTransform ()
 
float CharacterFlyingMaxLinearVelocity ()
 
float CharacterWalkingMaxLinearVelocity ()
 

Static Public Member Functions

static HkShape CreateCharacterShape (float height, float width, float headHeight, float headSize, float headForwardOffset, float downOffset=0, bool capsuleForHead=false)
 

Properties

HkCharacterRigidBody CharacterRigidBody [get]
 
Vector3 LinearVelocity [get, set]
 
Vector3 Forward [get, set]
 
Vector3 Up [get, set]
 
Vector3 Gravity [get, set]
 
float Elevate [get, set]
 
bool AtLadder [get, set]
 
Vector3 ElevateVector [get, set]
 
Vector3 ElevateUpVector [get, set]
 
bool Jump [set]
 
Vector3 Position [get, set]
 
float PosX [set]
 
float PosY [set]
 
Vector3 AngularVelocity [get, set]
 
float Speed [get, set]
 
bool Supported [get]
 
Vector3 SupportNormal [get]
 
Vector3 GroundVelocity [get]
 
bool ImmediateSetWorldTransform [get, set]
 
bool ContactPointCallbackEnabled [get, set]
 
float Mass [get]
 
float MaxSpeedRelativeToShip [get]
 

Events

ContactPointEventHandler ContactPointCallback
 

Detailed Description

Definition at line 29 of file MyCharacterProxy.cs.

Constructor & Destructor Documentation

Sandbox.Engine.Physics.MyCharacterProxy.MyCharacterProxy ( bool  isDynamic,
bool  isCapsule,
float  characterWidth,
float  characterHeight,
float  crouchHeight,
float  ladderHeight,
float  headSize,
float  headHeight,
Vector3  position,
Vector3  up,
Vector3  forward,
float  mass,
MyPhysicsBody  body,
bool  isOnlyVertical,
float  maxSlope,
float  maxImpulse,
float  maxSpeedRelativeToShip,
float?  maxForce = null,
HkRagdoll  ragDoll = null 
)
inline

Definition at line 100 of file MyCharacterProxy.cs.

Member Function Documentation

void Sandbox.Engine.Physics.MyCharacterProxy.Activate ( HkWorld  world)
inline

Definition at line 233 of file MyCharacterProxy.cs.

void Sandbox.Engine.Physics.MyCharacterProxy.ApplyAngularImpulse ( Vector3  impulse)
inline

Definition at line 700 of file MyCharacterProxy.cs.

void Sandbox.Engine.Physics.MyCharacterProxy.ApplyGravity ( Vector3  gravity)
inline

Definition at line 709 of file MyCharacterProxy.cs.

void Sandbox.Engine.Physics.MyCharacterProxy.ApplyLinearImpulse ( Vector3  impulse)
inline

Definition at line 689 of file MyCharacterProxy.cs.

float Sandbox.Engine.Physics.MyCharacterProxy.CharacterFlyingMaxLinearVelocity ( )
inline

Definition at line 819 of file MyCharacterProxy.cs.

float Sandbox.Engine.Physics.MyCharacterProxy.CharacterWalkingMaxLinearVelocity ( )
inline

Definition at line 824 of file MyCharacterProxy.cs.

static HkShape Sandbox.Engine.Physics.MyCharacterProxy.CreateCharacterShape ( float  height,
float  width,
float  headHeight,
float  headSize,
float  headForwardOffset,
float  downOffset = 0,
bool  capsuleForHead = false 
)
inlinestatic

Definition at line 63 of file MyCharacterProxy.cs.

void Sandbox.Engine.Physics.MyCharacterProxy.Deactivate ( HkWorld  world)
inline

Definition at line 249 of file MyCharacterProxy.cs.

void Sandbox.Engine.Physics.MyCharacterProxy.Dispose ( )
inline

Definition at line 193 of file MyCharacterProxy.cs.

void Sandbox.Engine.Physics.MyCharacterProxy.EnableFlyingState ( bool  enable)
inline

Definition at line 628 of file MyCharacterProxy.cs.

void Sandbox.Engine.Physics.MyCharacterProxy.EnableFlyingState ( bool  enable,
float  maxCharacterSpeed,
float  maxFlyingSpeed,
float  maxAcceleration 
)
inline

Definition at line 637 of file MyCharacterProxy.cs.

void Sandbox.Engine.Physics.MyCharacterProxy.EnableLadderState ( bool  enable)
inline

Definition at line 653 of file MyCharacterProxy.cs.

void Sandbox.Engine.Physics.MyCharacterProxy.EnableLadderState ( bool  enable,
float  maxCharacterSpeed,
float  maxAcceleration 
)
inline

Definition at line 658 of file MyCharacterProxy.cs.

HkShape Sandbox.Engine.Physics.MyCharacterProxy.GetCollisionShape ( )
inline

Definition at line 733 of file MyCharacterProxy.cs.

HkRigidBody Sandbox.Engine.Physics.MyCharacterProxy.GetHitRigidBody ( )
inline

Definition at line 791 of file MyCharacterProxy.cs.

MyPhysicsBody Sandbox.Engine.Physics.MyCharacterProxy.GetPhysicsBody ( )
inline

Definition at line 773 of file MyCharacterProxy.cs.

HkEntity Sandbox.Engine.Physics.MyCharacterProxy.GetRigidBody ( )
inline

Definition at line 782 of file MyCharacterProxy.cs.

Matrix Sandbox.Engine.Physics.MyCharacterProxy.GetRigidBodyTransform ( )
inline

Definition at line 800 of file MyCharacterProxy.cs.

HkShape Sandbox.Engine.Physics.MyCharacterProxy.GetShape ( )
inline

Definition at line 728 of file MyCharacterProxy.cs.

HkCharacterStateType Sandbox.Engine.Physics.MyCharacterProxy.GetState ( )
inline

Definition at line 328 of file MyCharacterProxy.cs.

void Sandbox.Engine.Physics.MyCharacterProxy.SetCollisionFilterInfo ( uint  info)
inline

Definition at line 224 of file MyCharacterProxy.cs.

void Sandbox.Engine.Physics.MyCharacterProxy.SetHardSupportDistance ( float  distance)
inline

Definition at line 746 of file MyCharacterProxy.cs.

void Sandbox.Engine.Physics.MyCharacterProxy.SetRigidBodyTransform ( Matrix  m)
inline

Definition at line 720 of file MyCharacterProxy.cs.

void Sandbox.Engine.Physics.MyCharacterProxy.SetShapeForCrouch ( HkWorld  world,
bool  enable 
)
inline

Definition at line 666 of file MyCharacterProxy.cs.

void Sandbox.Engine.Physics.MyCharacterProxy.SetState ( HkCharacterStateType  state)
inline

Definition at line 347 of file MyCharacterProxy.cs.

void Sandbox.Engine.Physics.MyCharacterProxy.SetSupportDistance ( float  distance)
inline

Definition at line 738 of file MyCharacterProxy.cs.

void Sandbox.Engine.Physics.MyCharacterProxy.SkipSimulation ( MatrixD  mat)
inline

Definition at line 612 of file MyCharacterProxy.cs.

void Sandbox.Engine.Physics.MyCharacterProxy.StepSimulation ( float  stepSizeInSeconds)
inline

Definition at line 535 of file MyCharacterProxy.cs.

void Sandbox.Engine.Physics.MyCharacterProxy.UpdateSupport ( float  stepSizeInSeconds)
inline

Definition at line 601 of file MyCharacterProxy.cs.

Property Documentation

Vector3 Sandbox.Engine.Physics.MyCharacterProxy.AngularVelocity
getset

Definition at line 500 of file MyCharacterProxy.cs.

bool Sandbox.Engine.Physics.MyCharacterProxy.AtLadder
getset

Definition at line 393 of file MyCharacterProxy.cs.

HkCharacterRigidBody Sandbox.Engine.Physics.MyCharacterProxy.CharacterRigidBody
get

Definition at line 57 of file MyCharacterProxy.cs.

bool Sandbox.Engine.Physics.MyCharacterProxy.ContactPointCallbackEnabled
getset

Definition at line 755 of file MyCharacterProxy.cs.

float Sandbox.Engine.Physics.MyCharacterProxy.Elevate
getset

Definition at line 373 of file MyCharacterProxy.cs.

Vector3 Sandbox.Engine.Physics.MyCharacterProxy.ElevateUpVector
getset

Definition at line 433 of file MyCharacterProxy.cs.

Vector3 Sandbox.Engine.Physics.MyCharacterProxy.ElevateVector
getset

Definition at line 413 of file MyCharacterProxy.cs.

Vector3 Sandbox.Engine.Physics.MyCharacterProxy.Forward
getset

Definition at line 285 of file MyCharacterProxy.cs.

Vector3 Sandbox.Engine.Physics.MyCharacterProxy.Gravity
getset

Definition at line 361 of file MyCharacterProxy.cs.

Vector3 Sandbox.Engine.Physics.MyCharacterProxy.GroundVelocity
get

Definition at line 531 of file MyCharacterProxy.cs.

bool Sandbox.Engine.Physics.MyCharacterProxy.ImmediateSetWorldTransform
getset

Definition at line 715 of file MyCharacterProxy.cs.

bool Sandbox.Engine.Physics.MyCharacterProxy.Jump
set

Definition at line 453 of file MyCharacterProxy.cs.

Vector3 Sandbox.Engine.Physics.MyCharacterProxy.LinearVelocity
getset

Definition at line 266 of file MyCharacterProxy.cs.

float Sandbox.Engine.Physics.MyCharacterProxy.Mass
get

Definition at line 810 of file MyCharacterProxy.cs.

float Sandbox.Engine.Physics.MyCharacterProxy.MaxSpeedRelativeToShip
get

Definition at line 815 of file MyCharacterProxy.cs.

Vector3 Sandbox.Engine.Physics.MyCharacterProxy.Position
getset

Definition at line 461 of file MyCharacterProxy.cs.

float Sandbox.Engine.Physics.MyCharacterProxy.PosX
set

Definition at line 484 of file MyCharacterProxy.cs.

float Sandbox.Engine.Physics.MyCharacterProxy.PosY
set

Definition at line 492 of file MyCharacterProxy.cs.

float Sandbox.Engine.Physics.MyCharacterProxy.Speed
getset

Definition at line 517 of file MyCharacterProxy.cs.

bool Sandbox.Engine.Physics.MyCharacterProxy.Supported
get

Definition at line 528 of file MyCharacterProxy.cs.

Vector3 Sandbox.Engine.Physics.MyCharacterProxy.SupportNormal
get

Definition at line 530 of file MyCharacterProxy.cs.

Vector3 Sandbox.Engine.Physics.MyCharacterProxy.Up
getset

Definition at line 307 of file MyCharacterProxy.cs.

Event Documentation

ContactPointEventHandler Sandbox.Engine.Physics.MyCharacterProxy.ContactPointCallback

Definition at line 31 of file MyCharacterProxy.cs.


The documentation for this class was generated from the following file: