[Raycast] How to use the filter function
Posted: Sat Apr 02, 2011 3:35 pm
iam using this version of the raycast
space.RayCast(raio, maxDistance, Filter, results)
the filter is a function like this
private bool Filter(BroadPhaseEntry entry)
{
...
}
supose i want the raycast to work only with Static meshes, i should use this filter ? how can i know what the BroadPhaseEntry is ? lots of "IS A" in the code? this will run for each objecct "near" the ray, would be slow ?
---
PloobsEngine Released: http://ploobs.com.br/?p=504
space.RayCast(raio, maxDistance, Filter, results)
the filter is a function like this
private bool Filter(BroadPhaseEntry entry)
{
...
}
supose i want the raycast to work only with Static meshes, i should use this filter ? how can i know what the BroadPhaseEntry is ? lots of "IS A" in the code? this will run for each objecct "near" the ray, would be slow ?
---
PloobsEngine Released: http://ploobs.com.br/?p=504