C# 클래스 Universe.Physics.OpenDynamicsEngine.ODERayCastRequestManager

Processes raycast requests as ODE is in a state to be able to do them. This ensures that it's thread safe and there will be no conflicts. Requests get returned by a different thread then they were requested by.
파일 보기 프로젝트 열기: Virtual-Universe/Virtual-Universe 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
ContactgeomsArray System.IntPtr
contactsPerCollision int
m_PendingRayRequests List
m_PendingRequests List

공개 메소드들

메소드 설명
ODERayCastRequestManager ( ODEPhysicsScene pScene ) : System
ProcessQueuedRequests ( ) : int

Process all queued raycast requests

QueueRequest ( System.Vector3 position, System.Vector3 direction, float length, RaycastCallback retMethod ) : void

Queues a raycast

QueueRequest ( System.Vector3 position, System.Vector3 direction, float length, int count, RayCallback retMethod ) : void

Queues a raycast

보호된 메소드들

메소드 설명
NearSpace ( IntPtr space, IntPtr g1, IntPtr g2 ) : void
RayCast ( ODERayCastRequest req ) : void

Method that actually initiates the raycast

RayCast ( ODERayRequest req ) : void

Method that actually initiates the raycast

비공개 메소드들

메소드 설명
Dispose ( ) : void

Dereference the creator scene so that it can be garbage collected if needed.

GetCurContactGeom ( int index, d &newcontactgeom ) : bool

메소드 상세

NearSpace() 보호된 메소드

protected NearSpace ( IntPtr space, IntPtr g1, IntPtr g2 ) : void
space System.IntPtr
g1 System.IntPtr
g2 System.IntPtr
리턴 void

ODERayCastRequestManager() 공개 메소드

public ODERayCastRequestManager ( ODEPhysicsScene pScene ) : System
pScene ODEPhysicsScene
리턴 System

ProcessQueuedRequests() 공개 메소드

Process all queued raycast requests
public ProcessQueuedRequests ( ) : int
리턴 int

QueueRequest() 공개 메소드

Queues a raycast
public QueueRequest ( System.Vector3 position, System.Vector3 direction, float length, RaycastCallback retMethod ) : void
position System.Vector3 Origin of Ray
direction System.Vector3 Ray normal
length float Ray length
retMethod RaycastCallback Return method to send the results
리턴 void

QueueRequest() 공개 메소드

Queues a raycast
public QueueRequest ( System.Vector3 position, System.Vector3 direction, float length, int count, RayCallback retMethod ) : void
position System.Vector3 Origin of Ray
direction System.Vector3 Ray normal
length float Ray length
count int Ray count
retMethod RayCallback Return method to send the results
리턴 void

RayCast() 보호된 메소드

Method that actually initiates the raycast
protected RayCast ( ODERayCastRequest req ) : void
req ODERayCastRequest
리턴 void

RayCast() 보호된 메소드

Method that actually initiates the raycast
protected RayCast ( ODERayRequest req ) : void
req ODERayRequest
리턴 void

프로퍼티 상세

ContactgeomsArray 보호되어 있는 프로퍼티

protected IntPtr,System ContactgeomsArray
리턴 System.IntPtr

contactsPerCollision 보호되어 있는 프로퍼티

ODE contact array to be filled by the collision testing
protected int contactsPerCollision
리턴 int

m_PendingRayRequests 보호되어 있는 프로퍼티

Pending Raycast Requests
protected List m_PendingRayRequests
리턴 List

m_PendingRequests 보호되어 있는 프로퍼티

Pending Raycast Requests
protected List m_PendingRequests
리턴 List