Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
SoftBodySharedSettings::Face Struct Reference

A face defines the surface of the body. More...

#include <SoftBodySharedSettings.h>

Public Member Functions

 Face ()=default
 Constructor.
 
 Face (uint32 inVertex1, uint32 inVertex2, uint32 inVertex3, uint32 inMaterialIndex=0)
 
bool IsDegenerate () const
 Check if this is a degenerate face (a face which points to the same vertex twice)
 

Public Attributes

uint32 mVertex [3]
 Indices of the vertices that form the face.
 
uint32 mMaterialIndex = 0
 Index of the material of the face in SoftBodySharedSettings::mMaterials.
 

Detailed Description

A face defines the surface of the body.

Constructor & Destructor Documentation

◆ Face() [1/2]

SoftBodySharedSettings::Face::Face ( )
default

Constructor.

◆ Face() [2/2]

SoftBodySharedSettings::Face::Face ( uint32  inVertex1,
uint32  inVertex2,
uint32  inVertex3,
uint32  inMaterialIndex = 0 
)
inline

Member Function Documentation

◆ IsDegenerate()

bool SoftBodySharedSettings::Face::IsDegenerate ( ) const
inline

Check if this is a degenerate face (a face which points to the same vertex twice)

Member Data Documentation

◆ mMaterialIndex

uint32 SoftBodySharedSettings::Face::mMaterialIndex = 0

Index of the material of the face in SoftBodySharedSettings::mMaterials.

◆ mVertex

uint32 SoftBodySharedSettings::Face::mVertex[3]

Indices of the vertices that form the face.


The documentation for this struct was generated from the following file: