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.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
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