reckfellENGINE

CsgSphere3D

A CSG Sphere shape.

On this page
class CsgSphere3DReckfellSharpInherits CsgPrimitive3D

A CSG Sphere shape.

This node allows you to create a sphere for use with the CSG system. Note: CSG nodes are intended to be used for level prototyping. Creating CSG nodes has a significant CPU cost compared to creating a MeshInstance3D with a PrimitiveMesh. Moving a CSG node within another CSG node also has a significant CPU cost, so it should be avoided during gameplay.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

CsgSphere3DConstructor
# CsgSphere3D
C#
public CsgSphere3D();

Properties5

MaterialProperty
# Material
C#
public Material Material { get; set; }

The material used to render the sphere.

RadialSegmentsProperty
# RadialSegments
C#
public int RadialSegments { get; set; }

Number of vertical slices for the sphere.

RadiusProperty
# Radius
C#
public float Radius { get; set; }

Radius of the sphere.

RingsProperty
# Rings
C#
public int Rings { get; set; }

Number of horizontal slices for the sphere.

SmoothFacesProperty
# SmoothFaces
C#
public bool SmoothFaces { get; set; }

If true the normals of the sphere are set to give a smooth effect making the sphere seem rounded. If false the sphere will have a flat shaded look.

Methods10

GetMaterialMaterial
# GetMaterial
C#
public Material GetMaterial();
Returns Material
GetRadialSegmentsint
# GetRadialSegments
C#
public int GetRadialSegments();
Returns int
GetRadiusfloat
# GetRadius
C#
public float GetRadius();
Returns float
GetRingsint
# GetRings
C#
public int GetRings();
Returns int
GetSmoothFacesbool
# GetSmoothFaces
C#
public bool GetSmoothFaces();
Returns bool
SetMaterialvoid
# SetMaterial
C#
public void SetMaterial(Material material);
Parameters
NameTypeDefault
materialMaterial—
SetRadialSegmentsvoid
# SetRadialSegments
C#
public void SetRadialSegments(int radialSegments);
Parameters
NameTypeDefault
radialSegmentsint—
SetRadiusvoid
# SetRadius
C#
public void SetRadius(float radius);
Parameters
NameTypeDefault
radiusfloat—
SetRingsvoid
# SetRings
C#
public void SetRings(int rings);
Parameters
NameTypeDefault
ringsint—
SetSmoothFacesvoid
# SetSmoothFaces
C#
public void SetSmoothFaces(bool smoothFaces);
Parameters
NameTypeDefault
smoothFacesbool—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.