OdeCollisionEntry¶
from acron.ode import OdeCollisionEntry
- class OdeCollisionEntry¶
Bases:
Bases:
TypedReferenceCountA class used to hold information about a collision that has occurred.
Inheritance diagram
digraph inheritance3f0e68bae3 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "OdeCollisionEntry" [URL="acron.ode.OdeCollisionEntry.html#acron.ode.OdeCollisionEntry",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedReferenceCount" -> "OdeCollisionEntry" [arrowsize=0.75,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedReferenceCount" [URL="acron.core.TypedReferenceCount.html#acron.core.TypedReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; }- __getitem__()¶
- __init__()¶
- get_body1()¶
Returns the first body in the collision.
- get_body2()¶
Returns the second body in the collision.
- static get_class_type()¶
- get_contact_geom()¶
Returns the nth contact geom in the collision.
- get_contact_point()¶
Returns the nth contact point in the collision. This does exactly the same as get_contact_geom(n).get_pos().
- get_geom1()¶
Returns the first geom in the collision.
- get_geom2()¶
Returns the second geom in the collision.
- get_num_contacts()¶
Returns the number of contacts in the collision.
- is_empty()¶
Returns true if the entry holds no contacts.