Rayex.Models (Rayex v0.0.2) View Source

Models related functions

Link to this section Summary

Link to this section Functions

Link to this function

draw_cube(position, width, height, length, color)

View Source

Specs

draw_cube(
  Rayex.Structs.Vector3.t(),
  float(),
  float(),
  float(),
  Rayex.Structs.Color.t()
) :: :ok

Draw cube

Link to this function

draw_cube_wires(position, width, height, length, color)

View Source

Specs

draw_cube_wires(
  Rayex.Structs.Vector3.t(),
  float(),
  float(),
  float(),
  Rayex.Structs.Color.t()
) :: :ok

Draw cube wires

Link to this function

draw_grid(slices, spacing)

View Source

Specs

draw_grid(non_neg_integer(), float()) :: :ok

Draw a grid (centered at (0, 0, 0))

Specs

Draw a ray line