How high/low the object bobs (in world units).
How fast the object bobs.
The object this behavior is attached to. Set automatically.
ReadonlyuuidStatic Optional ReadonlyinspectorCalled when the behavior is attached to an object.
Called when the behavior is detached from an object.
Called every frame to update the behavior logic.
The time elapsed since the last frame in seconds.
Makes an object bob up and down on the Y-axis using a sine wave. Ideal for floating power-ups, boats, or hovering items.