User Tools

Site Tools


api:random_vector2_range

RANDOM_VECTOR2_RANGE

Category: Data

Cloneable

Properties


Min

Serialized

Lower value of Range.

  • Type: vec2f
  • Expected: vec2f value
  • Default value: { 0, 0 }

Max

Serialized

Upper value of Range.

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

LockValues

Serialized

If true, the values will stay proportional to each other; ex. Min = { 0, 1 } & Max = { 0.5, 1 } will return random values like : { 0.25, 0.5 }. If false, each value will be random; ex. Min = { 0, 0.5 } & Max = { 0.5, 1 } will return random values like : { 0.15, 0.95 } or { 0.35, 0.55 }.

  • Type: boolean
  • Expected: boolean value
  • Default value: false
api/random_vector2_range.txt · Last modified: 2022/12/02 14:10 (external edit)