Class: dcollresult

The tesult of manual collision results are stored here. The returned count can be higher thanthe detailed contact info stored within and prevents gc of stored dgeoms.

Hierarchy

o-+ ode
  o-+ dcollresult

Methods:

Method overview:


new ([int maxcontacts])
returns: (dcollresult)
returns new dcollresult with the given number of maximum contact info. (default is 128)
clear (dcollresult)
returns: ()
clears contact info, releases dgeoms for gc. (automatically called before each test)
complete (dcollresult)
returns: (bool)
returns whether all contacts were stored.
contacts (dcollresult)
returns: (int)
returns current contact count (may be smaller than returned hit counts).
geoms (dcollresult, int index)
returns: (dgeom,dgeom)
returns ith contact geoms.
max (dcollresult)
returns: (int)
returns maximum contacts
normal (dcollresult, int index)
returns: (float x,y,z, d)
returns ith contact normal and depth of penetration.
pos (dcollresult, int index)
returns: (float x,y,z)
returns ith contact position
test (dcollresult,dcollider,dcollider)
returns: (int count)
tests two dcolliders against each other and returns the number of contacts.
testnear (dcollresult, dcollider, dcollider)
returns: (int count)
tests two dcolliders if they are (have subnodes) near each other (aaboxes overlap).
tri (dcollresult, int index, int subtri)
returns: (int triid, float u, v)
returns ith triangle sub info.
trihits (dcollresult, int index)
returns: (int)
returns ith number of tri hits.

Inherited Methods: