Jump to content

Search the Community

Showing results for tags 'trigger'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to UNIGINE Forums
    • News & Announcements
    • Getting started
  • Development
    • Content Creation
    • World Design
    • Rendering
    • Animation
    • Physics, Navigation and Path Finding
    • UI Systems
    • Sound & Video
    • Editor
    • C++ Programming
    • C# Programming
    • Networking
    • Sim IG (Image Generator)
    • VR Discussions
    • General
  • Improving UNIGINE
    • Documentation
    • Feedback for UNIGINE team
    • Bug Reports
    • Unigine SDK Beta feedback
  • Community
    • Add-on Store (https://store.unigine.com/)
    • Showcase
    • Collaboration
    • Tools, Plugins, Materials & Tutorials
    • General Discussions
  • Legacy
    • UnigineScript

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 2 results

  1. Hello, I am trying to remove multiple trigger created by following code And I am using trigger.setEnterCallback(0) to remove the PhysicalTigger but I am facing an issue in removing them. Below mentioned is the scenario. The trigger.setEnterCallback(0); works if I have only one trigger, but when I have more trigger it is not working. int size = 0; for(int x = 0; x <= size; x++) { ObjectMesh mesh = add_editor(new ObjectMesh("TestWork/assest/worlds/meshes/sphere_00.mesh")); mesh.setWorldTransform(translate(Vec3(x, 0, 0.25f))); } For each mesh Object I place an Physical Trigger using my custom object "trigger" over it's location & set respective callback (Enter & Leave) trigger.setEnterCallback("enter_callback", x); Now I am set triggerEnterCallback(0, x) in enter_callback() function after all my operation are done in this function But the trigger is till existing, how can I remove the trigger in above mentioned problem. Thanks
×
×
  • Create New...