C# 클래스 BEPUphysics.BroadPhaseEntries.Terrain

Heightfield-based unmovable collidable object.
상속: StaticCollidable
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
events ContactEventManager

공개 메소드들

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

Casts a convex shape against the collidable.

GetNormal ( int i, int j, System.Vector3 &normal ) : void

Gets the normal of a vertex at the given indices.

GetPosition ( int i, int j, System.Vector3 &position ) : void

Gets the position of a vertex at the given indices.

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

Tests a ray against the entry.

Terrain ( TerrainShape shape, AffineTransform worldTransform ) : System

Constructs a new Terrain.

Terrain ( float heights, AffineTransform worldTransform ) : System

Constructs a new Terrain.

UpdateBoundingBox ( ) : void

Updates the bounding box of the terrain.

메소드 상세

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

GetNormal() 공개 메소드

Gets the normal of a vertex at the given indices.
public GetNormal ( int i, int j, System.Vector3 &normal ) : void
i int First dimension index into the heightmap array.
j int Second dimension index into the heightmap array.
normal System.Vector3 Normal at the given indices.
리턴 void

GetPosition() 공개 메소드

Gets the position of a vertex at the given indices.
public GetPosition ( int i, int j, System.Vector3 &position ) : void
i int First dimension index into the heightmap array.
j int Second dimension index into the heightmap array.
position System.Vector3 Position at the given indices.
리턴 void

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

Terrain() 공개 메소드

Constructs a new Terrain.
public Terrain ( TerrainShape shape, AffineTransform worldTransform ) : System
shape BEPUphysics.CollisionShapes.TerrainShape Shape to use for the terrain.
worldTransform BEPUutilities.AffineTransform Transform to use for the terrain.
리턴 System

Terrain() 공개 메소드

Constructs a new Terrain.
public Terrain ( float heights, AffineTransform worldTransform ) : System
heights float Height data to use to create the TerrainShape.
worldTransform BEPUutilities.AffineTransform Transform to use for the terrain.
리턴 System

UpdateBoundingBox() 공개 메소드

Updates the bounding box of the terrain.
public UpdateBoundingBox ( ) : void
리턴 void

프로퍼티 상세

events 보호되어 있는 프로퍼티

protected ContactEventManager events
리턴 ContactEventManager