Class CollisionProxy
Helper container used for detailed triangle mesh intersections tests.
Inheritance
CollisionProxy
Assembly: FlaxEngine.dll
File: Engine/Graphics/Models/CollisionProxy.h
Syntax
public class CollisionProxy
Fields
Triangles
The triangles.
Declaration
public Array<CollisionTriangle> Triangles
Field Value
|
Array<CollisionTriangle>
|
Methods
Clear()
Declaration
public void Clear()
HasData()
Declaration
public bool HasData() const
Returns
|
bool
|
Init(uint32 vertices, uint32 triangles, const Float3* positions, const IndexType* indices, uint32 positionsStride=sizeof(Float3))
Declaration
public void Init(uint32 vertices, uint32 triangles, const Float3* positions, const IndexType* indices, uint32 positionsStride=sizeof(Float3))
Parameters
|
uint32
vertices
|
|
uint32
triangles
|
|
Float3
positions
|
|
IndexType
indices
|
|
uint32
positionsStride
|
Type Parameters
|
typename IndexType
|
Intersects(const Ray& ray, const Matrix& world, Real& distance, Vector3& normal)
Declaration
public bool Intersects(const Ray& ray, const Matrix& world, Real& distance, Vector3& normal) const
Parameters
|
Ray
ray
|
|
Matrix
world
|
|
Real
distance
|
|
Vector3
normal
|
Returns
|
bool
|