C# 클래스 BEPUphysics.BroadPhaseEntries.InstancedMesh

Collidable mesh which can be created from a reusable InstancedMeshShape. Very little data is needed for each individual InstancedMesh object, allowing a complicated mesh to be repeated many times. Since the hierarchy used to accelerate collisions is purely local, it may be marginally slower than an individual StaticMesh.
상속: StaticCollidable
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
events ContactEventManager

공개 메소드들

메소드 설명
ConvexCast ( CollisionShapes castShape, RigidTransform &startingTransform, System.Vector3 &sweep, RayHit &hit ) : bool

Casts a convex shape against the collidable.

InstancedMesh ( InstancedMeshShape meshShape ) : System

Constructs a new InstancedMesh.

InstancedMesh ( InstancedMeshShape meshShape, AffineTransform worldTransform ) : System

Constructs a new InstancedMesh.

RayCast ( BEPUutilities.Ray ray, float maximumLength, RayHit &rayHit ) : bool

Tests a ray against the entry.

RayCast ( BEPUutilities.Ray ray, float maximumLength, TriangleSidedness sidedness, RayHit &rayHit ) : bool

Tests a ray against the instance.

UpdateBoundingBox ( ) : void

Updates the bounding box to the current state of the entry.

메소드 상세

ConvexCast() 공개 메소드

Casts a convex shape against the collidable.
public ConvexCast ( CollisionShapes castShape, RigidTransform &startingTransform, System.Vector3 &sweep, RayHit &hit ) : bool
castShape CollisionShapes Shape to cast.
startingTransform BEPUutilities.RigidTransform Initial transform of the shape.
sweep System.Vector3 Sweep to apply to the shape.
hit BEPUutilities.RayHit Hit data, if any.
리턴 bool

InstancedMesh() 공개 메소드

Constructs a new InstancedMesh.
public InstancedMesh ( InstancedMeshShape meshShape ) : System
meshShape BEPUphysics.CollisionShapes.InstancedMeshShape Shape to use for the instance.
리턴 System

InstancedMesh() 공개 메소드

Constructs a new InstancedMesh.
public InstancedMesh ( InstancedMeshShape meshShape, AffineTransform worldTransform ) : System
meshShape BEPUphysics.CollisionShapes.InstancedMeshShape Shape to use for the instance.
worldTransform BEPUutilities.AffineTransform Transform to use for the instance.
리턴 System

RayCast() 공개 메소드

Tests a ray against the entry.
public RayCast ( BEPUutilities.Ray ray, float maximumLength, RayHit &rayHit ) : bool
ray BEPUutilities.Ray Ray to test.
maximumLength float Maximum length, in units of the ray's direction's length, to test.
rayHit BEPUutilities.RayHit Hit location of the ray on the entry, if any.
리턴 bool

RayCast() 공개 메소드

Tests a ray against the instance.
public RayCast ( BEPUutilities.Ray ray, float maximumLength, TriangleSidedness sidedness, RayHit &rayHit ) : bool
ray BEPUutilities.Ray Ray to test.
maximumLength float Maximum length of the ray to test; in units of the ray's direction's length.
sidedness TriangleSidedness Sidedness to use during the ray cast. This does not have to be the same as the mesh's sidedness.
rayHit BEPUutilities.RayHit The hit location of the ray on the mesh, if any.
리턴 bool

UpdateBoundingBox() 공개 메소드

Updates the bounding box to the current state of the entry.
public UpdateBoundingBox ( ) : void
리턴 void

프로퍼티 상세

events 보호되어 있는 프로퍼티

protected ContactEventManager events
리턴 ContactEventManager