Click or drag to resize
MotionAnimator Constructor
Create the motion animator.

Namespace:  GeonBit.ECS.Components.Particles.Animators
Assembly:  GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public MotionAnimator(
	BaseAnimatorProperties properties,
	Vector3 velocity,
	Nullable<Vector3> acceleration = null,
	float maxVelocity = 0f,
	float velocityJitter = 0f,
	float accelerationJitter = 0f,
	Nullable<Vector3> velocityDirectionJitter = null,
	Nullable<Vector3> accelerationDirectionJitter = null
)

Parameters

properties
Type: GeonBit.ECS.Components.Particles.AnimatorsBaseAnimatorProperties
Base animator properties.
velocity
Type: Vector3
Starting velocity (movement vector).
acceleration (Optional)
Type: SystemNullableVector3
Acceleration force.
maxVelocity (Optional)
Type: SystemSingle
If provided, will limit max velocity.
velocityJitter (Optional)
Type: SystemSingle
Add random jittering to velocity size.
accelerationJitter (Optional)
Type: SystemSingle
Add random jittering to acceleration size.
velocityDirectionJitter (Optional)
Type: SystemNullableVector3
Add random direction jitter to velocity.
accelerationDirectionJitter (Optional)
Type: SystemNullableVector3
Add random direction jitter to acceleration.
See Also