W3cubDocs

/Godot 4.2

TorusMesh

Inherits: PrimitiveMesh < Mesh < Resource < RefCounted < Object

Class representing a torus PrimitiveMesh.

Description

Class representing a torus PrimitiveMesh.

Properties

float

inner_radius

0.5

float

outer_radius

1.0

int

ring_segments

32

int

rings

64

Property Descriptions

float inner_radius = 0.5

  • void set_inner_radius ( float value )
  • float get_inner_radius ( )

The inner radius of the torus.

float outer_radius = 1.0

  • void set_outer_radius ( float value )
  • float get_outer_radius ( )

The outer radius of the torus.

int ring_segments = 32

  • void set_ring_segments ( int value )
  • int get_ring_segments ( )

The number of edges each ring of the torus is constructed of.

int rings = 64

  • void set_rings ( int value )
  • int get_rings ( )

The number of slices the torus is constructed of.

© 2014–present Juan Linietsky, Ariel Manzur and the Godot community
Licensed under the Creative Commons Attribution Unported License v3.0.
https://docs.godotengine.org/en/4.2/classes/class_torusmesh.html