Jump to content

Search the Community

Showing results for tags 'boundbox'.

  • 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 1 result

  1. Hello, I encountered something weird manipulating BoundingBox with UnigineScript, here's the code part reproducing the problem : BoundBox bb = node.getBoundBox(); //bb.setTransform(mat4(node.getTransform())); vec3 p1 = bb.getMin(); vec3 p2 = bb.getMax(); engine.visualizer.renderPoint3D(Vec3(p1), 0.1, vec4(1, 0, 0, 0.5), 0); engine.visualizer.renderPoint3D(Vec3(p2), 0.1, vec4(1, 0, 0, 0.5), 0); engine.visualizer.renderNodeBoundBox(node, vec4(0, 0, 1, 0.5)); (The code has to be run with engine.visualizer.setEnabled(1); called, and a valid node instance loaded). The visualizer part shows on my program 2 random points (red ones), not matching with any of the bounding box points (rendered in blue). The commented line solves the problem if uncommented., so I think the transform matrix of the node is not assigned by default to the bounding box, which might look like a bug. Thank you. EDIT : By the way, the setTransform() method is not referenced (but still usable) in the UnigineScript doc.
×
×
  • Create New...