SurfaceEntity.Shape.Sphere


class SurfaceEntity.Shape.Sphere : SurfaceEntity.Shape


cal An inwards-facing sphere-shaped mesh, centered at (0,0,0) in the local coordinate space. This is intended to be used by setting the entity's pose to the user's head pose. Radius is represented in the local spatial coordinate system of the entity. The center of the Surface will be mapped to (0, 0, -radius) in the local coordinate space, and texture coordinate UVs are applied from positive X to negative X in an equirectangular projection. This means that if this Entity is set to the user's head pose, then they will be looking at the center of the video if it were viewed in a 2D player.

Summary

Public constructors

Sphere(radius: Float)

Public properties

Float

The radius of the sphere in the local spatial coordinate system of the entity.

Public constructors

Sphere

Added in 1.0.0-alpha07
Sphere(radius: Float)

Public properties

radius

Added in 1.0.0-alpha07
val radiusFloat

The radius of the sphere in the local spatial coordinate system of the entity.