Click or drag to resize

ImmediateGeometryAddSphere Method

Simple helper to draw an UV sphere with given latitude, longitude and radius.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void AddSphere(
	int lats,
	int lons,
	float radius,
	bool addUv = true
)

Parameters

lats
Type: SystemInt32

[Missing <param name="lats"/> documentation for "M:Godot.ImmediateGeometry.AddSphere(System.Int32,System.Int32,System.Single,System.Boolean)"]

lons
Type: SystemInt32

[Missing <param name="lons"/> documentation for "M:Godot.ImmediateGeometry.AddSphere(System.Int32,System.Int32,System.Single,System.Boolean)"]

radius
Type: SystemSingle

[Missing <param name="radius"/> documentation for "M:Godot.ImmediateGeometry.AddSphere(System.Int32,System.Int32,System.Single,System.Boolean)"]

addUv (Optional)
Type: SystemBoolean

[Missing <param name="addUv"/> documentation for "M:Godot.ImmediateGeometry.AddSphere(System.Int32,System.Int32,System.Single,System.Boolean)"]

See Also