VerticalPositionComponent
Namespace: Murder.Components
Assembly: Murder.dll
public sealed struct VerticalPositionComponent : IComponent
Implements: IComponent
⭐ Constructors
public VerticalPositionComponent()
public VerticalPositionComponent(float z, float zVelocity, bool hasGravity)
Parameters
z
float
zVelocity
float
hasGravity
bool
⭐ Properties
GRAVITY
public static const float GRAVITY;
Returns
float
HasGravity
public readonly bool HasGravity;
Returns
bool
Z
public readonly float Z;
Returns
float
ZVelocity
public readonly float ZVelocity;
Returns
float
⭐ Methods
UpdatePosition(float, float)
public VerticalPositionComponent UpdatePosition(float deltaTime, float bounciness)
Parameters
deltaTime
float
bounciness
float
Returns
VerticalPositionComponent
⚡