Photon Quantum 2.1.9

Classes | Public Member Functions | Public Attributes | List of all members
Quantum.Shape3D Struct Reference

Defines a 3D shape with Type and data disposed in a union-like structure. All shapes have a UserTag, BroadRadius and Centroid. All non-compound shapes have a LocalTransform and their Centroid always match their local transform position. More...

Classes

struct  CompoundShape3D
 A 3D shape type that can reference a group of other 3D shapes (including other compounds, but not Mesh and Terrain shapes). Compound shape overlaps and physics colliders with compound shapes are supported. More...
 

Public Member Functions

FPVector3 GetLocalSupport (FrameBase f, FPVector3 localDir, bool skipNormalize=false)
 Computes a point on the shape which has the highest dot product in a given direction (localDir ), both in the local space of the shape. More...
 

Public Attributes

UInt16 UserTag
 Set a number tag to identify a shape. More...
 

Detailed Description

Defines a 3D shape with Type and data disposed in a union-like structure. All shapes have a UserTag, BroadRadius and Centroid. All non-compound shapes have a LocalTransform and their Centroid always match their local transform position.

Member Function Documentation

◆ GetLocalSupport()

FPVector3 Quantum.Shape3D.GetLocalSupport ( FrameBase  f,
FPVector3  localDir,
bool  skipNormalize = false 
)
inline

Computes a point on the shape which has the highest dot product in a given direction (localDir ), both in the local space of the shape.

Parameters
fCurrent frame.
localDirThe direction, in local space, in which to compute the support point.
skipNormalizeIf the provided direction is already normalized.
Returns
A point, in the local space of the shape, which has the highest dot product in the given direction.

Member Data Documentation

◆ UserTag

UInt16 Quantum.Shape3D.UserTag

Set a number tag to identify a shape.