User Tools

Site Tools


communityapi:ebf:comp_enforce_rectangle

This is an old revision of the document!


COMP_ENFORCE_RECTANGLE

Category: Component
Mod Dependency: Foundation EBF

Parent class: COMPONENT

Properties


Rectangle

  • Type: vec2f
  • Default value: {1, 1}

Enforcer

Runtime only

Functions


setEnforcer

void setEnforcer(gameObject)

Name Type Description
gameObject GAME_OBJECT The centre of the rectangle

getPosition

vec3f getPosition()

Returns a uniformly distributed random position within the specified rectangle in 2 dimensions

communityapi/ebf/comp_enforce_rectangle.1635981450.txt.gz · Last modified: 2021/11/03 19:17 by minotorious

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki