module Oid::Systems::EntityHelper
Direct including types
Defined in:
oid/systems/entity_helper.crInstance Method Summary
- #context
- #create_label(name, text, position = Oid::Vector3.new(2.5 - (68.0 / 2), 0.0, 10.0), origin = Oid::Enum::OriginType::UpperLeft, font_size = 20, color = Oid::Color::BLACK, position_type = Oid::Enum::Position::Relative)
-
#create_line(start_pos : Oid::Vector3, end_pos : Oid::Vector2, thickness = 1.0, color = Oid::Color::GRAY)
Draw a line
-
#create_outline(position = Oid::Vector3.new(0.0, 10.0, 10.0), width = 68.0, height = 20.0, thickness = 1.0, color = Oid::Color::GOLD, origin = Oid::Enum::OriginType::UpperCenter, pos_type = Oid::Enum::Position::Relative)
Draw a rectangle outline
- #create_rec(position = Oid::Vector3.new(0.0, 10.0, 10.0), width = 68.0, height = 20.0, color = Oid::Color::GOLD, origin = Oid::Enum::OriginType::UpperCenter, pos_type = Oid::Enum::Position::Relative)
-
#generate_2d_grid(size, spacing, length = 1600.0)
Generate a 2D grid
- #generate_origin_grid(name, color = Oid::Color::GREEN, length = 4000.0)
- #make_dot(position, size = 3.0, color = Oid::Color::BLACK, origin = Oid::Enum::OriginType::Center, pos_type = Oid::Enum::Position::Static)
- #mark_real_origin(color = Oid::Color::RED)
Instance Method Detail
def create_label(name, text, position = Oid::Vector3.new(2.5 - (68.0 / 2), 0.0, 10.0), origin = Oid::Enum::OriginType::UpperLeft, font_size = 20, color = Oid::Color::BLACK, position_type = Oid::Enum::Position::Relative)
#
def create_line(start_pos : Oid::Vector3, end_pos : Oid::Vector2, thickness = 1.0, color = Oid::Color::GRAY)
#
Draw a line
def create_outline(position = Oid::Vector3.new(0.0, 10.0, 10.0), width = 68.0, height = 20.0, thickness = 1.0, color = Oid::Color::GOLD, origin = Oid::Enum::OriginType::UpperCenter, pos_type = Oid::Enum::Position::Relative)
#
Draw a rectangle outline
def create_rec(position = Oid::Vector3.new(0.0, 10.0, 10.0), width = 68.0, height = 20.0, color = Oid::Color::GOLD, origin = Oid::Enum::OriginType::UpperCenter, pos_type = Oid::Enum::Position::Relative)
#
def make_dot(position, size = 3.0, color = Oid::Color::BLACK, origin = Oid::Enum::OriginType::Center, pos_type = Oid::Enum::Position::Static)
#