Struct CollisionShape
Physics collision shape variant for different shapes such as box, sphere, capsule.
Inherited Members
CollisionShape
Assembly: FlaxEngine.dll
File: Engine/Physics/Types.h
Syntax
public struct CollisionShape
Fields
Box
Declaration
public struct CollisionShape::@188::@191 Box
Field Value
struct CollisionShape::@188::@191
|
Capsule
Declaration
public struct CollisionShape::@188::@192 Capsule
Field Value
struct CollisionShape::@188::@192
|
ColumnScale
Declaration
public float ColumnScale
Field Value
float
|
ConvexMesh
Declaration
public void* ConvexMesh
Field Value
void
|
HalfExtents
Declaration
public float HalfExtents[3]
Field Value
float
|
HalfHeight
Declaration
public float HalfHeight
Field Value
float
|
HeightField
Declaration
public void* HeightField
Field Value
void
|
HeightScale
Declaration
public float HeightScale
Field Value
float
|
Radius
Declaration
public float Radius
Field Value
float
|
RowScale
Declaration
public float RowScale
Field Value
float
|
Scale
Declaration
public float Scale[3]
Field Value
float
|
Sphere
Declaration
public struct CollisionShape::@188::@190 Sphere
Field Value
struct CollisionShape::@188::@190
|
TriangleMesh
Declaration
public void* TriangleMesh
Field Value
void
|
Type
Declaration
public Types Type
Field Value
Types
|
Methods
SetBox(float halfExtents[3])
Declaration
public void SetBox(float halfExtents[3])
Parameters
float
halfExtents
|
SetCapsule(float radius, float halfHeight)
Declaration
public void SetCapsule(float radius, float halfHeight)
Parameters
float
radius
|
float
halfHeight
|
SetConvexMesh(void* contextMesh, float scale[3])
Declaration
public void SetConvexMesh(void* contextMesh, float scale[3])
Parameters
void
contextMesh
|
float
scale
|
SetHeightField(void* heightField, float heightScale, float rowScale, float columnScale)
Declaration
public void SetHeightField(void* heightField, float heightScale, float rowScale, float columnScale)
Parameters
void
heightField
|
float
heightScale
|
float
rowScale
|
float
columnScale
|
SetSphere(float radius)
Declaration
public void SetSphere(float radius)
Parameters
float
radius
|
SetTriangleMesh(void* triangleMesh, float scale[3])
Declaration
public void SetTriangleMesh(void* triangleMesh, float scale[3])
Parameters
void
triangleMesh
|
float
scale
|