Rengy Script · Type
f32
A number with a fractional part: a speed, a time in seconds, an angle in radians.
Methods
.sin() -> f32
The sine of this angle, in radians.
.cos() -> f32
The cosine of this angle, in radians.
.abs() -> f32
The absolute value of this number.
Returned by
- heard_value(signal: String) -> f32
- amount(action: String) -> f32
- letters() -> f32
- road_distance(point: Vec2) -> f32
- time_left() -> f32
- tile_number(map: NodeId, layer: String, cell: Vec2, key: String) -> f32
- kept_number(key: String, default: f32) -> f32
- saved_number(key: String, default: f32) -> f32
- random(min: f32, max: f32) -> f32
- random_per_play(min: f32, max: f32) -> f32
- tau() -> f32
- abs(x: f32) -> f32
- min(a: f32, b: f32) -> f32
- max(a: f32, b: f32) -> f32
- clamp(x: f32, lo: f32, hi: f32) -> f32
- floor(x: f32) -> f32
- sqrt(x: f32) -> f32
- angle_of(direction: Vec2) -> f32
- angle_between(a: Vec2, b: Vec2) -> f32
- ease(curve: Easing, t: f32) -> f32