module Oid::Components::Rotation::Helper
Direct including types
Defined in:
Instance Method Summary
-
#add_component_rotation : Entitas::Entity
Add a
Oid::Components::Rotation
to the entity. -
#add_component_rotation(**args) : Entitas::Entity
Add a
Oid::Components::Rotation
to the entity. -
#add_rotation(value : Oid::Vector3 = Oid::Vector3.zero) : Entitas::Entity
Add a
Oid::Components::Rotation
to the entity. -
#del_component_rotation : Entitas::Entity
Delete
Oid::Components::Rotation
from the entity. -
#del_rotation : Entitas::Entity
Delete
Oid::Components::Rotation
from the entity. -
#get_component_rotation : Oid::Components::Rotation
Will return the component that is a
Oid::Components::Rotation
or raise -
#has_component_rotation? : Bool
Will return true if the entity has an component
Oid::Components::Rotation
or false if it does not -
#has_rotation? : Bool
Will return true if the entity has an component
Oid::Components::Rotation
or false if it does not -
#remove_component_rotation
Append.
-
#remove_rotation
Append.
-
#replace_component_rotation(component : Oid::Components::Rotation)
Append.
-
#replace_component_rotation(**args)
Will replace the current component with the new one generated from the provided arguments
-
#replace_rotation(value : Oid::Vector3)
Will replace the current component with the new one generated from the provided arguments
-
#replace_rotation(component : Oid::Components::Rotation)
Will replace the current component with the new one provided
-
#rotation : Oid::Components::Rotation
Will return the component that is a
Oid::Components::Rotation
or raise -
#rotation? : Bool
Alias.
Instance Method Detail
Add a Oid::Components::Rotation
to the entity. Returns self
to allow chainables
entity.add_component_rotation
Add a Oid::Components::Rotation
to the entity. Returns self
to allow chainables
entity.add_component_rotation
Add a Oid::Components::Rotation
to the entity. Returns self
to allow chainables
entity.add_rotation(1)
Delete Oid::Components::Rotation
from the entity. Returns self
to allow chainables
entity.del_rotation
entity.rotation # => nil
Delete Oid::Components::Rotation
from the entity. Returns self
to allow chainables
entity.del_rotation
entity.rotation # => nil
Will return the component that is a Oid::Components::Rotation
or raise
Will return true if the entity has an component Oid::Components::Rotation
or false if it does not
Will return true if the entity has an component Oid::Components::Rotation
or false if it does not
Append. Alias for #replace_rotation
Will replace the current component with the new one generated from the provided arguments
entity.replace_rotation
entity.get_rotation # => (new_comp)
Will replace the current component with the new one generated from the provided arguments
entity.replace_rotation(value: 1)
entity.get_rotation # => (new_comp)
or
entity.replace_rotation(1)
entity.get_rotation # => (new_comp)
Will replace the current component with the new one provided
entity.replace_component_rotation(new_comp)
entity.get_rotation # => (new_comp)
Will return the component that is a Oid::Components::Rotation
or raise