Implement new ODE Area Trigger (dsl_ode_trigger_area_new) to trigger on the area of an Object's bounding box.
rjhowell44 opened this issue · 0 comments
rjhowell44 commented
New constructor
/**
* @brief New Area trigger that checks for the occurrence of objects that have a bbox area
* equal to or greater that the minimum and less than or equal to maximum.
* @param[in] name unique name for the ODE Trigger
* @param[in] source unique source name filter for the ODE Trigger, NULL = ANY_SOURCE
* @param[in] class_id class id filter for this ODE Trigger
* @param[in] limit limits the number of ODE occurrences, a value of 0 = NO limit
* @param[in] minimum the minimum area to trigger an ODE occurrence in units of
* pixels. A value of 0 = NO minimum.
* @param[in] maximum the maximum area to trigger an ODE occurrence in units of
* pixels. A value of 0 = NO maximum.
* @return DSL_RESULT_SUCCESS on success, DSL_RESULT_ODE_TRIGGER_RESULT otherwise.
*/
DslReturnType dsl_ode_trigger_area_new(const wchar_t* name,
const wchar_t* source, uint class_id, uint limit, uint minimum, uint maximum);