Namespace: Tzu_Engine.Physic
Assembly: Tzu_Engine (in Tzu_Engine.dll)

Syntax

Visual Basic (Declaration)
<UnmanagedFunctionPointerAttribute(CallingConvention.Cdecl)>
Public Delegate Function TZPhysics.WorldRayCastCB( _ 
   ByVal body As IntPtr,  _ 
   ByVal normal As Vector3,  _ 
   ByVal collisionID As Integer,  _ 
   <MarshalAsAttribute(UnmanagedType.IUnknown, ArraySubType := UnmanagedType.0, SizeParamIndex := 0, SizeConst := 0, IidParameterIndex := 0, SafeArraySubType := VarEnum.VT_EMPTY)> ByVal userData As Object,  _ 
   ByVal intersetParam As Single _ 
) As Single
C#
[UnmanagedFunctionPointerAttribute(CallingConvention.Cdecl)]
public delegate float TZPhysics.WorldRayCastCB(
   IntPtr body,
   Vector3 normal,
   int collisionID,
   [MarshalAsAttribute(UnmanagedType.IUnknown, ArraySubType = UnmanagedType.0, SizeParamIndex = 0, SizeConst = 0, IidParameterIndex = 0, SafeArraySubType = VarEnum.VT_EMPTY)] object userData,
   float intersetParam
)
C++
[UnmanagedFunctionPointerAttribute(CallingConvention::Cdecl)]
public delegate float TZPhysics.WorldRayCastCB(
   IntPtr body,
   Vector3 normal,
   int collisionID,
   [MarshalAsAttribute(UnmanagedType::IUnknown, ArraySubType = UnmanagedType::0, SizeParamIndex = 0, SizeConst = 0, IidParameterIndex = 0, SafeArraySubType = VarEnum::VT_EMPTY)] Object userData,
   float intersetParam
)
J#
/** delegate */
/** @attribute UnmanagedFunctionPointerAttribute(CallingConvention.Cdecl) */
public delegate float TZPhysics.WorldRayCastCB(
   IntPtr body,
   Vector3 normal,
   int collisionID,
   /** @attribute MarshalAsAttribute(UnmanagedType.IUnknown, ArraySubType = UnmanagedType.0, SizeParamIndex = 0, SizeConst = 0, IidParameterIndex = 0, SafeArraySubType = VarEnum.VT_EMPTY) */ object userData,
   float intersetParam
)
JScript
JScript suports the use of delegates, but not the declaration of new ones.

See Also