Welcome to the Godot Reference Fork and the Godot Proposals Fork alternatives. Why?

VisualScriptMathConstant

0 0 vote
Article Rating

Inherits: VisualScriptNode < Resource < Reference < Object

Commonly used mathematical constants.

Description

Provides common math constants, such as Pi, on an output Data port.

Input Ports:

none

Output Ports:

  • Data (variant): get

Enumerations

enum MathConstant:

  • MATH_CONSTANT_ONE = 0 — Unity: 1.
  • MATH_CONSTANT_PI = 1 — Pi: 3.141593.
  • MATH_CONSTANT_HALF_PI = 2 — Pi divided by two: 1.570796.
  • MATH_CONSTANT_TAU = 3 — Tau: 6.283185.
  • MATH_CONSTANT_E = 4 — Mathematical constant e, the natural log base: 2.718282.
  • MATH_CONSTANT_SQRT2 = 5 — Square root of two: 1.414214.
  • MATH_CONSTANT_INF = 6 — Infinity: inf.
  • MATH_CONSTANT_NAN = 7 — Not a number: nan.
  • MATH_CONSTANT_MAX = 8 — Represents the size of the MathConstant enum.

Property Descriptions

Default0
Setterset_math_constant(value)
Getterget_math_constant()

The math constant.

Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.

Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x