Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement new ODE Area Trigger (dsl_ode_trigger_area_new) to trigger on the area of an Object's bounding box. #1285

Open
rjhowell44 opened this issue Sep 8, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@rjhowell44
Copy link
Collaborator

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);
@rjhowell44 rjhowell44 self-assigned this Sep 8, 2024
@rjhowell44 rjhowell44 added the enhancement New feature or request label Sep 8, 2024
@rjhowell44 rjhowell44 added this to the v0.01.beta milestone Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant