Ctrl+K

RotateComponent

Declaration

public class Strawberry.Components.Movement.RotateComponent

Rotates the entity around its own axis

Inherits: Strawberry.Core.BaseComponent

Properties

Transform

Gets the transform of the owner

TransformComponent Transform { get }

AngularSpeed

Gets or sets the angular speed of the rotation.

float AngularSpeed { get set }

Methods

OnComponentAdded override

void OnComponentAdded(BaseComponent component)

Parameters:

Name Type Description
component Strawberry.Core.BaseComponent

OnUpdate override

void OnUpdate()