Tao.Ode SDK Documentation

Ode.dGeomCapsulePointDepth Method 

Return the depth of the point (x,y,z) in the given capsule. Points inside the geom will have positive depth, points outside it will have negative depth, and points on the surface will have zero depth.

[Visual Basic]
Public Shared Function dGeomCapsulePointDepth( _
   ByVal capsule As IntPtr, _
   ByVal x As Single, _
   ByVal y As Single, _
   ByVal z As Single _
) As Single
[C#]
public static float dGeomCapsulePointDepth(
   IntPtr capsule,
   float x,
   float y,
   float z
);

Parameters

capsule
the capsule to query
x
the x coordinate of the point
y
the y coordinate of the point
z
the z coordinate of the point

Return Value

the depth of the point

See Also

Ode Class | Tao.Ode Namespace