BobbingComponent
Declaration
public class Strawberry.Components.Movement.BobbingComponent
Implements a bobbing animation on the entity.
Inherits: Strawberry.Core.BaseComponent
Properties
Transform
Gets the transform of the owner
TransformComponent Transform { get }
Amplitude
Gets or sets the amplitude (Height) of the bobbing animation. (Default: 5)
float Amplitude { get set }
Frequency
Gets or sets the frequency (Cycles per second) of the bobbing animation. (Default: 1)
float Frequency { get set }
Phase
Gets or sets the phase (Offset) of the bobbing animation. (Default: 0)
float Phase { get set }
Methods
OnComponentAdded override
void OnComponentAdded(BaseComponent component)
Parameters:
| Name | Type | Description |
|---|---|---|
component |
Strawberry.Core.BaseComponent |
OnUpdate override
void OnUpdate()