Skip to content

[Feature Request]: CuboidVolume #1

Description

@TheEnderek0

type

Mixin

Name

CuboidVolume

Enhancement description.

A mixin class that represents an enclosed cuboid volume.

Suggested methods:

  • Constructors (and opAssign) using:

    • VecMin, VecMax
    • width, height, depth
  • bool IsInside(vec) - Returns if a vector is inside this enclosed volume (useful for emulating triggers)

  • setMin(vec) / setMax(vec) - Set the min/maxs

  • opMul - Scales the volume on all axis

  • scaleX, scaleY, scaleZ - scales respective axis

  • SetOrigin - Set an origin to orient this in space

  • GetOrigin - Get the origin of the center of this cuboid

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions