Empeld
Empeld plugin documentation.
essentials.action.Entities.Actor.NewtonianBase Class Reference
Inheritance diagram for essentials.action.Entities.Actor.NewtonianBase:
essentials.action.Entities.Actor.AttachableActorBase essentials.action.Entities.Actor.INewtonianEntity essentials.action.Entities.Actor.IRepulsiveEntity essentials.action.Entities.Actor.ActorBase essentials.action.Entities.Actor.IAttachableActor pluginbase.Objects.Syncable.Entity.IActor pluginbase.Objects.Syncable.Entity.IPositionableEntity pluginbase.Objects.Syncable.Entity.EntityBase pluginbase.Objects.Syncable.Entity.IMutableActor pluginbase.Objects.Syncable.Entity.Controllers.IComponentizedEntity pluginbase.Objects.Syncable.Entity.IActor pluginbase.Objects.Syncable.Entity.Controllers.IModelEntity pluginbase.Objects.Syncable.Entity.IEntity pluginbase.Objects.Syncable.Entity.Controllers.IEntityController pluginbase.Objects.Syncable.Entity.IPositionableEntity pluginbase.Objects.Syncable.Entity.Controllers.IModelEntity pluginbase.Objects.Syncable.Entity.Controllers.IHookedEntity pluginbase.Objects.Syncable.Entity.Controllers.ITaskedEntity pluginbase.Objects.Syncable.Entity.IMutableEntity pluginbase.Objects.Syncable.Entity.IActor pluginbase.Objects.Syncable.Entity.Controllers.IRpcEntity pluginbase.Objects.Syncable.Entity.IMutableEntity pluginbase.Objects.Syncable.SyncableObject essentials.action.Entities.Actor.PathingEntityBase essentials.action.Entities.Actor.PlayableBase essentials.action.Entities.AI.AiEntityBase essentials.action.Entities.Basic.GuyEntity

Public Member Functions

 NewtonianBase ()
 
- Public Member Functions inherited from essentials.action.Entities.Actor.ActorBase
virtual void SetPosition (double x, double y, double z)
 Sets the position. More...
 
virtual void SetName (string name)
 
- Public Member Functions inherited from pluginbase.Objects.Syncable.Entity.EntityBase
void Destroy ()
 Marks the entity for destruction More...
 
override string ToString ()
 Gets a human-readable string representing an entity More...
 
- Public Member Functions inherited from pluginbase.Objects.Syncable.INetSyncable
void ResetWatch ()
 Resets the watch. Overridable to reset all sub-items More...
 
void EncodeTo (BinaryWriter writer, EncodeContext context)
 Encodes to. More...
 
void DecodeFrom (BinaryReader reader, DecodeContext context)
 Decodes from. More...
 
void Persist (IPersistObject obj)
 Persist the network object to a persist object More...
 
void Load (IReadPersistObject obj)
 Load the network object from a persist object More...
 
- Public Member Functions inherited from pluginbase.Objects.Syncable.INetWatcher
void Touch ()
 Touch the class, signalling that a change ocurred More...
 
void TouchRecurse ()
 Touches a class and any sub-classes it may have More...
 

Public Attributes

Vector3d UserVelocity => this._userVelocity
 non-physical velocity (eg. not gravity/pushing/etc) More...
 
Vector3d Acceleration => this._acceleration
 Real acceleration of the entity More...
 

Protected Member Functions

virtual void SimulateClientPhysics (IFrameTimeState frameTime)
 
virtual void SimulateAudio (IFrameTimeState frameTime)
 
virtual bool ShouldOverrideAnimation (ModelAnimation animation)
 
virtual ModelAnimation GetAnimation ()
 
void SetAnimation (ModelAnimation animation, ModelAnimationFlag flag=ModelAnimationFlag.InterruptRepeat)
 
void SetAnimation (string slug, ModelAnimationFlag flag=ModelAnimationFlag.Default)
 
bool DoesCollide (Vector3d pos, double heightOffset=0.5)
 Detects whether or not the entity will collide with a block at a given point More...
 
void AddPhysicalVelocity (Vector3d vel)
 
virtual void OnCollided (Vector3d velDiff)
 
virtual void SimulateServerPhysics (IFrameTimeState timeState)
 
- Protected Member Functions inherited from essentials.action.Entities.Actor.AttachableActorBase
 AttachableActorBase ()
 
IActor GetAttachedActor ()
 
void AttachTo (uint actorId)
 
void AttachTo (IActor actor)
 
void Detach ()
 
- Protected Member Functions inherited from essentials.action.Entities.Actor.ActorBase
sealed override bool ShouldSyncWith (IPositionableEntity user)
 Gets whether or not the entity shuold sync with another entity More...
 
abstract IModelInstance CreateModel ()
 
- Protected Member Functions inherited from pluginbase.Objects.Syncable.Entity.EntityBase
void SetTransient (bool isTransient=true)
 Sets whether or not the entity will be persisted Transient entities will not be persisted More...
 
virtual void OnServerSpawn ()
 Raises the server spawn event. Will only be called once, even across reloads More...
 
virtual void OnServerDestroy ()
 Raises the server destroy event. More...
 
void InvokeRemotely (string methodName, RpcTarget target, params object[] args)
 Invoke a remote method on a target More...
 
void InvokeRemotely< T > (string methodName, RpcTarget target, Action< RpcNetworkContext, T > returnCallback, params object[] args)
 Invoke a remote method on a target More...
 
void InvokeRemotely< T > (string methodName, RpcTarget target, Action< T > returnCallback, params object[] args)
 Invoke a remote method on a target More...
 
void InvokeRemotely (RpcTarget target, Expression< Action > thisExpression)
 Invokes a remote target with an expression More...
 
void InvokeDirect (string methodName, params object[] args)
 Invoke a remote method on the opposite-owner eg. if this is the server, than on the client owner, otherwise on the server More...
 
void InvokeDirect< T > (string methodName, Action< RpcNetworkContext, T > returnCallback, params object[] args)
 Invoke a remote method on the opposite-owner eg. if this is the server, than on the client owner, otherwise on the server More...
 
void InvokeDirect< T > (string methodName, Action< T > returnCallback, params object[] args)
 Invoke a remote method on the opposite-owner eg. if this is the server, than on the client owner, otherwise on the server More...
 
void InvokeDirect (Expression< Action > thisExpression)
 Invokes a method on the opposite-owner. Action must act upon this More...
 
void InvokeDirect< TRet > (Expression< Func< TRet >> thisExpression, Action< TRet > returnCallback)
 Invokes a method on the opposite-owner. Action must act upon this More...
 
- Protected Member Functions inherited from pluginbase.Objects.Syncable.SyncableObject
 SyncableObject ()
 Initializes a new instance of the pluginbase.Objects.Syncable.SyncableObject class. More...
 
sealed override void ResetWatch ()
 Reset variables watched status More...
 
sealed override void TouchRecurse ()
 Touch self, including all children of this syncable object More...
 
sealed override void EncodeTo (BinaryWriter writer, EncodeContext context)
 Encode changes to binary data More...
 
sealed override void DecodeFrom (BinaryReader reader, DecodeContext context)
 Decode changes from binary data More...
 
sealed override void Persist (IPersistObject obj)
 Build up a persistant object for this syncable, including all sync children and persist objects More...
 
sealed override void Load (IReadPersistObject obj)
 Load a given persistent object back into this instance More...
 
- Protected Member Functions inherited from pluginbase.Objects.Syncable.SyncableBase< SyncableObject >
void Touch ()
 Touch the instance, notifying something has changed More...
 
virtual void OnChanged ()
 Raises the changed event. More...
 
abstract void Persist (IPersistObject obj)
 Persist the instance to a persist object More...
 
abstract void Load (IReadPersistObject obj)
 Load the instance from a persist object More...
 

Protected Attributes

readonly IWorld World
 
readonly IResourceResolver EssentialsActionResources
 
readonly IBlockLookup BlockLookup
 
virtual bool TreatAllBlocksSloped => false
 If we treat all blocks as sloped, that will allow the driver to walk up even flat-faced blocks (eg structural) Primarily to allow AI path navigation without "jumping" More...
 
Vector3d RequestedVelocity
 The requested velocity to be traveling Will apply if physically makes sense More...
 
Vector3d RequestedAcceleration
 Requested acceleration More...
 

Properties

IBlockAudioManager AudioBlocks [get]
 
IAudioManager AudioManager [get]
 
virtual SoundDescriptor FallingWindSound [get]
 
virtual double FallingWindVelocity [get]
 
virtual bool HasGravity [get]
 Gets a value indicating whether this instance has gravity. Defaults always true More...
 
IBlock HeadBlock [get]
 
IBlock OnBlock [get]
 
virtual bool OnGround [get]
 Gets a value indicating whether this user on ground. More...
 
virtual bool InLiquid [get]
 
virtual bool IsUnderwater [get]
 
virtual bool InClimbable [get]
 
virtual double EntityHeight [get]
 Gets the height of the entity. More...
 
virtual double EntityRepulsionStrength [get]
 Strength at which another entity is repulsed by this one More...
 
virtual double EntityRepulsiveModifier [get]
 The multiplicative modifier of which a repulsive entities' strength is multiplied More...
 
virtual double EntityRadius [get]
 Gets the entity radius. Used in collision More...
 
virtual double UserVelocityAcceleration [get]
 How fast can the user velocity change More...
 
virtual double UserVelocityMultiplier [get]
 How much does the user velocity affect the physical engine. Defaults to full on ground, none in air More...
 
virtual double UserAccelerationMultiplier [get]
 How much does the requested acceleration affect the game physics More...
 
virtual double ClientMovementUpdateTolerance [get]
 
Vector3d GravityVector [get]
 
virtual double Density [get]
 
Vector3d Velocity [get]
 Calculated velocity (not sync'd) More...
 
- Properties inherited from essentials.action.Entities.Actor.AttachableActorBase
sealed override Vector3d Position [get, protected set]
 
Vector3d RelativePosition [get, protected set]
 
sealed override Rotation2d Rotation [get, protected set]
 
bool IsAttached [get]
 
- Properties inherited from essentials.action.Entities.Actor.ActorBase
virtual Vector3d Position [get, protected set]
 
bool PositionFinishedInterpolating [get]
 
virtual Rotation2d Rotation [get, protected set]
 
bool IsPlayer [get]
 
bool IsMe [get]
 
string Name [get, protected set]
 
virtual string NamePlate [get]
 
virtual double NamePlateViewDistance [get]
 
virtual Vector3d NamePlateOffset [get]
 
virtual double SyncDistance [get]
 
virtual Vector3d UpVector [get]
 
IModelInstance Model [get]
 
virtual bool Visible [get]
 
virtual bool CastShadow [get]
 
- Properties inherited from pluginbase.Objects.Syncable.Entity.EntityBase
bool Spawned [get]
 Gets a value indicating whether this entity has been spawned More...
 
uint ObjectId [get]
 Gets or sets the object identifier. (aka entity id) More...
 
ushort OwnerId [get]
 The ident of the owner of the obejct More...
 
sealed override ushort NetOwnerId [get]
 Who owns me?! (Net ID) This is how we pass information down to SyncableObject More...
 
bool IsServer [get]
 Is the current object instantiated on the server More...
 
ushort ObjectTypeId [get]
 The type ID of the object, as defined by the entity attribute More...
 
- Properties inherited from pluginbase.Objects.Syncable.SyncableObject
virtual ushort NetOwnerId [get]
 Gets the network owner of this object (user id) More...
 
- Properties inherited from pluginbase.Objects.Syncable.Entity.IEntity
uint ObjectId [get]
 Gets the object identifier. More...
 
ushort OwnerId [get]
 Gets the owner identifier. (Net Ident) More...
 
ushort ObjectTypeId [get]
 Gets the object type identifier, as defined by the attribute More...
 
bool DestroyFlag [get]
 Gets a value indicating whether this pluginbase.Objects.Syncable.Entity.IEntity is destroyable. More...
 
bool Spawned [get]
 Gets a value indicating whether this entity has been spawned More...
 
bool Transient [get]
 Gets a value indicating whether this entity is transient (Won't be saved) More...
 
- Properties inherited from pluginbase.Objects.Syncable.INetSyncable
INetWatcher Watcher [get, set]
 Who is watching (who to inform of a change) More...
 
bool Modified [get]
 Gets a value indicating whether this pluginbase.Objects.Syncable.INetSyncable is modified. More...
 
- Properties inherited from pluginbase.Objects.Syncable.Entity.IMutableActor
bool IsPlayer [set]
 
bool IsMe [set]
 
- Properties inherited from pluginbase.Objects.Syncable.Entity.IActor
string Name [get]
 
- Properties inherited from pluginbase.Objects.Syncable.Entity.Controllers.IModelEntity
IModelInstance Model [get]
 The instance of the model used for the entity More...
 
string NamePlate [get]
 The name plate displayed for the entity, if any More...
 
double NamePlateViewDistance [get]
 The distance the name plate can be viewed from More...
 
Vector3d NamePlateOffset [get]
 The offset of the nameplate from the position of the entity More...
 
bool Visible [get]
 Gets a value indicating whether the entity is visible More...
 
bool CastShadow [get]
 Gets a value indiciating whether the entity casts a shadow More...
 
- Properties inherited from pluginbase.Objects.Syncable.Entity.IPositionableEntity
Vector3d Position [get]
 Gets the position. More...
 
Vector3d UpVector [get]
 Gets up vector. More...
 
Rotation2d Rotation [get]
 Gets the rotation. More...
 
- Properties inherited from essentials.action.Entities.Actor.IAttachableActor
bool IsAttached [get]
 Is attached to another entity More...
 
- Properties inherited from essentials.action.Entities.Actor.INewtonianEntity
Vector3d Velocity [get]
 
Vector3d Acceleration [get]
 
double EntityHeight [get]
 
double EntityRadius [get]
 
- Properties inherited from essentials.action.Entities.Actor.IRepulsiveEntity
double EntityRepulsionStrength [get]
 Linear strength at which this entity is repulsed by another More...
 

Additional Inherited Members

- Events inherited from pluginbase.Objects.Syncable.SyncableBase< SyncableObject >
Action< T > Changed
 Event triggered when any change occurs on this object, either locally or over the network More...
 
Action< T > NetUpdate
 Event triggered when a change occurs resulting from a change over the network More...
 
Action< T > Touched
 Event occurs only when an object is first touched. Usually the first instance of a local-change More...
 

Constructor & Destructor Documentation

◆ NewtonianBase()

essentials.action.Entities.Actor.NewtonianBase.NewtonianBase ( )
32  {
33  this.InjectDependencies();
34  _onBlock = _headBlock = this.BlockLookup.EmptyBlock;
35  }
readonly IBlockLookup BlockLookup
Definition: NewtonianBase.cs:26

Member Function Documentation

◆ AddPhysicalVelocity()

void essentials.action.Entities.Actor.NewtonianBase.AddPhysicalVelocity ( Vector3d  vel)
protected
424  {
425  _physicalVelocity += vel;
426  }

◆ DoesCollide()

bool essentials.action.Entities.Actor.NewtonianBase.DoesCollide ( Vector3d  pos,
double  heightOffset = 0.5 
)
protected

Detects whether or not the entity will collide with a block at a given point

Returns
true, if collide was doesed, false otherwise.
Parameters
posPosition.
heightOffsetOffset of lower height

Attribute: testPos

;

284  {
285  double entityHeight = this.EntityHeight;
286  double entityRadius = this.EntityRadius;
287  int radiusCeil = MExt.CeilInt(entityRadius);
288  int heightCeil = MExt.CeilInt(entityHeight);
289 
290  for (int height = 0; height<=heightCeil; ++height)
291  {
292  for (int xOff=-radiusCeil; xOff<=radiusCeil; ++xOff)
293  {
294  for (int yOff=-radiusCeil; yOff<=radiusCeil; ++yOff)
295  {
296  var testPos = pos + new Vector3d(MExt.Clamp(xOff, -entityRadius, entityRadius),
297  MExt.Clamp(yOff, -entityRadius, entityRadius),
298  MExt.Clamp(height, heightOffset, entityHeight));
299 
300  var block = this.World[testPos];
301  if (!block.Generated || block.Block.Solid)
302  {
303  return true;
304  }
305  }
306  }
307  }
308 
309  return false;
310  }
readonly IWorld World
Definition: NewtonianBase.cs:20
static float Clamp(float v, float min, float max)
Clamp the specified v, min and max.
Definition: MathExtensions.cs:331
virtual double EntityRadius
Gets the entity radius. Used in collision
Definition: NewtonianBase.cs:549
Math extensions
Definition: MathExtensions.cs:7
static int CeilInt(float v)
Ceils the int.
Definition: MathExtensions.cs:222
virtual double EntityHeight
Gets the height of the entity.
Definition: NewtonianBase.cs:517

◆ GetAnimation()

virtual ModelAnimation essentials.action.Entities.Actor.NewtonianBase.GetAnimation ( )
protectedvirtual
111  {
112  if (_userOnGround)
113  {
114  if (this._userVelocity.Value.Length > 3f)
115  {
116  return ModelAnimation.Run;
117  }
118  if (this._userVelocity.Value.Length > 0.1f)
119  {
120  return ModelAnimation.Walk;
121  }
122  }
123  return ModelAnimation.Idle;
124  }
ModelAnimation
Model animation.
Definition: ModelAnimation.cs:8

◆ OnCollided()

virtual void essentials.action.Entities.Actor.NewtonianBase.OnCollided ( Vector3d  velDiff)
protectedvirtual
429  {}

◆ SetAnimation() [1/2]

void essentials.action.Entities.Actor.NewtonianBase.SetAnimation ( ModelAnimation  animation,
ModelAnimationFlag  flag = ModelAnimationFlag.InterruptRepeat 
)
protected

Attribute: Remote

128  {
129  if (this.IsServer)
130  this.InvokeRemotely("SetAnimation", RpcTarget.Others, animation, flag);
131  else
132  this.Model.QueueAnimation(animation, flag);
133  }
void QueueAnimation(ModelAnimation mode, ModelAnimationFlag flag=ModelAnimationFlag.Default)
Queue an animation, to be played
IModelInstance Model
Definition: ActorBase.cs:142
bool IsServer
Is the current object instantiated on the server
Definition: EntityBase.cs:130
static readonly RpcTarget Others
Static that only targets other clients
Definition: RpcTarget.cs:179
Class that specifies the target of an RPC class
Definition: RpcTarget.cs:21
void InvokeRemotely(string methodName, RpcTarget target, params object[] args)
Invoke a remote method on a target
Definition: EntityBase.cs:231

◆ SetAnimation() [2/2]

void essentials.action.Entities.Actor.NewtonianBase.SetAnimation ( string  slug,
ModelAnimationFlag  flag = ModelAnimationFlag.Default 
)
protected

Attribute: Remote("SetAnimationSlug")

137  {
138  if (this.IsServer)
139  this.InvokeRemotely("SetAnimationSlug", RpcTarget.Others, slug, flag);
140  else
141  this.Model.QueueAnimation(slug, flag);
142  }
void QueueAnimation(ModelAnimation mode, ModelAnimationFlag flag=ModelAnimationFlag.Default)
Queue an animation, to be played
IModelInstance Model
Definition: ActorBase.cs:142
bool IsServer
Is the current object instantiated on the server
Definition: EntityBase.cs:130
static readonly RpcTarget Others
Static that only targets other clients
Definition: RpcTarget.cs:179
Class that specifies the target of an RPC class
Definition: RpcTarget.cs:21
void InvokeRemotely(string methodName, RpcTarget target, params object[] args)
Invoke a remote method on a target
Definition: EntityBase.cs:231

◆ ShouldOverrideAnimation()

virtual bool essentials.action.Entities.Actor.NewtonianBase.ShouldOverrideAnimation ( ModelAnimation  animation)
protectedvirtual
105  {
106  return animation == ModelAnimation.Undefined || animation == ModelAnimation.Idle
107  || animation == ModelAnimation.Walk || animation == ModelAnimation.Run;
108  }
ModelAnimation
Model animation.
Definition: ModelAnimation.cs:8

◆ SimulateAudio()

virtual void essentials.action.Entities.Actor.NewtonianBase.SimulateAudio ( IFrameTimeState  frameTime)
protectedvirtual

Attribute: EntityHook(EntityHook.Simulate, EntityScope.Client)

Attribute: _onBlock

.Walk.Play(this.Position);

Attribute: _onBlock

.Fall.Play(this.Position);

56  {
57  //Footsteps
58  if (this._userVelocity.Value.Length > 0.1 && (_userOnGround || InLiquid) && !IsUnderwater )
59  {
60  double stepRateMs = 1500.0 / this._userVelocity.Value.Length;
61 
62  if (frameTime.CurrentTime - _lastFootstep > TimeSpan.FromMilliseconds(stepRateMs))
63  {
64  this.AudioBlocks[_onBlock].Walk.Play(this.Position);
65  _lastFootstep = frameTime.CurrentTime;
66  }
67  }
68 
69  //Falling on ground sound
70  if (this.Velocity.Length > 10f && !(_userOnGround || InLiquid))
71  {
72  _wasFalling = true;
73  }
74  else if( _wasFalling && (_userOnGround || InLiquid))
75  {
76  _wasFalling = false;
77  this.AudioBlocks[_onBlock].Fall.Play(this.Position);
78  }
79 
80  //Falling max velocity wind
81  if (_fallingWind != null)
82  {
83  if (this.Velocity.Length > FallingWindVelocity && !_userOnGround && !InLiquid)
84  {
85  float windGain = (float)Math.Min( (this.Velocity.Length - FallingWindVelocity) * 0.05, 1 );
86  this._fallingWind.Gain = windGain;
87  if (!this._fallingWind.IsPlaying)
88  {
89  this._fallingWind.Play();
90  }
91  _fallingWind.Position = this.Position;
92  }
93  else if(this._fallingWind.IsPlaying)
94  {
95  this._fallingWind.Stop();
96  }
97  }
98  }
virtual double FallingWindVelocity
Definition: NewtonianBase.Client.cs:47
Vector3d Velocity
Calculated velocity (not sync&#39;d)
Definition: NewtonianBase.cs:644
float Gain
Definition: ISampleInstance.cs:12
sealed override Vector3d Position
Definition: AttachableActorBase.cs:23
virtual bool IsUnderwater
Definition: NewtonianBase.cs:495
bool IsPlaying
Definition: ISampleInstance.cs:7
DateTime CurrentTime
The current UTC tiem of the frame
Definition: IFrameTimeState.cs:39
IBlockAudioManager AudioBlocks
Definition: NewtonianBase.Client.cs:14
Vector3d Position
Definition: ISamplePositionalInstance.cs:8
virtual bool InLiquid
Definition: NewtonianBase.cs:487

◆ SimulateClientPhysics()

virtual void essentials.action.Entities.Actor.NewtonianBase.SimulateClientPhysics ( IFrameTimeState  frameTime)
protectedvirtual

Attribute: EntityHook(EntityHook.Simulate, EntityScope.Client)

23  {
24  if (this.IsMe || this.PositionFinishedInterpolating)
25  {
26  SimulateNewtonianPhysics(frameTime, false);
27  }
28  }
bool PositionFinishedInterpolating
Definition: ActorBase.cs:39
bool IsMe
Definition: ActorBase.cs:58

◆ SimulateServerPhysics()

virtual void essentials.action.Entities.Actor.NewtonianBase.SimulateServerPhysics ( IFrameTimeState  timeState)
protectedvirtual

Attribute: EntityHook(EntityHook.Simulate, EntityScope.Server)

12  {
13  SimulateNewtonianPhysics(timeState, true);
14  }

Member Data Documentation

◆ Acceleration

Vector3d essentials.action.Entities.Actor.NewtonianBase.Acceleration => this._acceleration

Real acceleration of the entity

The acceleration.

◆ BlockLookup

readonly IBlockLookup essentials.action.Entities.Actor.NewtonianBase.BlockLookup
protected

Attribute: Dependency

◆ EssentialsActionResources

readonly IResourceResolver essentials.action.Entities.Actor.NewtonianBase.EssentialsActionResources
protected

Attribute: Dependency(Optional = true)

◆ RequestedAcceleration

Vector3d essentials.action.Entities.Actor.NewtonianBase.RequestedAcceleration
protected

Requested acceleration

◆ RequestedVelocity

Vector3d essentials.action.Entities.Actor.NewtonianBase.RequestedVelocity
protected

The requested velocity to be traveling Will apply if physically makes sense

◆ TreatAllBlocksSloped

virtual bool essentials.action.Entities.Actor.NewtonianBase.TreatAllBlocksSloped => false
protected

If we treat all blocks as sloped, that will allow the driver to walk up even flat-faced blocks (eg structural) Primarily to allow AI path navigation without "jumping"

true if treat all blocks sloped; otherwise, false.

◆ UserVelocity

Vector3d essentials.action.Entities.Actor.NewtonianBase.UserVelocity => this._userVelocity

non-physical velocity (eg. not gravity/pushing/etc)

The user velocity.

◆ World

readonly IWorld essentials.action.Entities.Actor.NewtonianBase.World
protected

Attribute: Dependency

Property Documentation

◆ AudioBlocks

IBlockAudioManager essentials.action.Entities.Actor.NewtonianBase.AudioBlocks
getprotected

Attribute: Dependency(Optional = true)

◆ AudioManager

IAudioManager essentials.action.Entities.Actor.NewtonianBase.AudioManager
getprotected

Attribute: Dependency(Optional = true)

◆ ClientMovementUpdateTolerance

virtual double essentials.action.Entities.Actor.NewtonianBase.ClientMovementUpdateTolerance
getprotected

◆ Density

virtual double essentials.action.Entities.Actor.NewtonianBase.Density
get

◆ EntityHeight

virtual double essentials.action.Entities.Actor.NewtonianBase.EntityHeight
get

Gets the height of the entity.

The height of the entity.

◆ EntityRadius

virtual double essentials.action.Entities.Actor.NewtonianBase.EntityRadius
get

Gets the entity radius. Used in collision

The entity radius.

◆ EntityRepulsionStrength

virtual double essentials.action.Entities.Actor.NewtonianBase.EntityRepulsionStrength
get

Strength at which another entity is repulsed by this one

The entity repulsion.

◆ EntityRepulsiveModifier

virtual double essentials.action.Entities.Actor.NewtonianBase.EntityRepulsiveModifier
getprotected

The multiplicative modifier of which a repulsive entities' strength is multiplied

The entity repulsive modifier.

◆ FallingWindSound

virtual SoundDescriptor essentials.action.Entities.Actor.NewtonianBase.FallingWindSound
getprotected

◆ FallingWindVelocity

virtual double essentials.action.Entities.Actor.NewtonianBase.FallingWindVelocity
getprotected

◆ GravityVector

Vector3d essentials.action.Entities.Actor.NewtonianBase.GravityVector
get

◆ HasGravity

virtual bool essentials.action.Entities.Actor.NewtonianBase.HasGravity
getprotected

Gets a value indicating whether this instance has gravity. Defaults always true

true if this instance has gravity; otherwise, false.

◆ HeadBlock

IBlock essentials.action.Entities.Actor.NewtonianBase.HeadBlock
getprotected

◆ InClimbable

virtual bool essentials.action.Entities.Actor.NewtonianBase.InClimbable
getprotected

◆ InLiquid

virtual bool essentials.action.Entities.Actor.NewtonianBase.InLiquid
getprotected

◆ IsUnderwater

virtual bool essentials.action.Entities.Actor.NewtonianBase.IsUnderwater
getprotected

◆ OnBlock

IBlock essentials.action.Entities.Actor.NewtonianBase.OnBlock
getprotected

◆ OnGround

virtual bool essentials.action.Entities.Actor.NewtonianBase.OnGround
getprotected

Gets a value indicating whether this user on ground.

◆ UserAccelerationMultiplier

virtual double essentials.action.Entities.Actor.NewtonianBase.UserAccelerationMultiplier
getprotected

How much does the requested acceleration affect the game physics

The user acceleration multiplier.

◆ UserVelocityAcceleration

virtual double essentials.action.Entities.Actor.NewtonianBase.UserVelocityAcceleration
getprotected

How fast can the user velocity change

The user velocity acceleration.

◆ UserVelocityMultiplier

virtual double essentials.action.Entities.Actor.NewtonianBase.UserVelocityMultiplier
getprotected

How much does the user velocity affect the physical engine. Defaults to full on ground, none in air

The user velocity multiplier.

◆ Velocity

Vector3d essentials.action.Entities.Actor.NewtonianBase.Velocity
get

Calculated velocity (not sync'd)

The velocity.


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