Photon Quantum 3.0.0

Public Attributes | Static Public Attributes | Properties | List of all members
Quantum.Shape3D.CapsuleShape Struct Reference

Defines a 3D capsule shape in its local space. In order to create a Shape3D of type Shape3DType.Capsule, use Shape3D.CreateCapsule.

See also
Shape3D, Shape3DType
More...

Public Attributes

FP Diameter => Radius * 2
 Twice the value of the capsule Radius. More...
 
FP Extent
 The distance from the capsule's centroid to the center of the top or bottom semi-sphere.

See also
Height
More...
 
FP Height => (Extent + Radius) * 2
 The distance from the bottommost to the topmost points in the capsule along its elongated axis. More...
 
FP Radius
 The radius of the capsule's top and bottom semi-spheres. More...
 

Static Public Attributes

const int SIZE = FP.SIZE * 3
 The size of the struct in bytes. More...
 

Properties

FP _broadRadius [get, set]
 Obsolete. Use Shape3D.BroadRadius intead. More...
 

Detailed Description

Defines a 3D capsule shape in its local space. In order to create a Shape3D of type Shape3DType.Capsule, use Shape3D.CreateCapsule.

See also
Shape3D, Shape3DType

Member Data Documentation

◆ SIZE

const int Quantum.Shape3D.CapsuleShape.SIZE = FP.SIZE * 3
static

The size of the struct in bytes.

◆ Radius

FP Quantum.Shape3D.CapsuleShape.Radius

The radius of the capsule's top and bottom semi-spheres.

◆ Extent

FP Quantum.Shape3D.CapsuleShape.Extent

The distance from the capsule's centroid to the center of the top or bottom semi-sphere.

See also
Height

◆ Diameter

FP Quantum.Shape3D.CapsuleShape.Diameter => Radius * 2

Twice the value of the capsule Radius.

◆ Height

FP Quantum.Shape3D.CapsuleShape.Height => (Extent + Radius) * 2

The distance from the bottommost to the topmost points in the capsule along its elongated axis.

Property Documentation

◆ _broadRadius

FP Quantum.Shape3D.CapsuleShape._broadRadius
getset

Obsolete. Use Shape3D.BroadRadius intead.