Urho.Shapes.Torus Class

Component that creates a Torus.

See Also: Torus


public class Torus : Shape


C# Example

void MakeTorus (Scene scene)
    var node = scene.CreateChild ();
    node.Position = new Vector (0,0,0);
    node.SetScale (0);
    node.Rotation (60, 0, 30);

    // Create a Torus Shape component:
    var cone = node.CreateComponent<Torus> ();
    torus.Color = Color.Blue;


Namespace: Urho.Shapes
Assembly: Urho (in Urho.dll)
Assembly Versions:

The members of Urho.Shapes.Torus are listed below.

See Also: Shape

Public Constructors

Constructs an instance of the type, for internal use. These types are created by calling Node.CreateComponent

Protected Properties

ModelResourceString. Returns the path of the model for this shape, for the shape to work, the MDL file in the CoreData package must exist.