Jump to content

Search the Community

Showing results for tags 'shape-object reference except'.

  • 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. Hi, I 'm using UNiGiNE 2.2.1. I am trying to create a sphere object of 200 mass in C#. But I 'm getting "object reference not set to instance of an object " RUN TIME Exception. I'm writing a part of code here. 1. ObjectMeshStatic mesh = new ObjectMeshStatic("/samples/players/meshes/sphere_00.mesh"); 2. mesh.setMaterial("players_red", "*"); 3. mesh.setProperty("surface_base", "*"); 4. Body body = new BodyRigid(mesh, 0.5f); 5. Shape shape = new ShapeSphere(body, 0.5f); 6. shape.setMass(200.0f); In the above C# code, i'm getting exception at 6th line. If I comment that line, my program is running fine but not i'm expecting. So please tell me why the exception is coming. Thanks. P.S Same kind of exception is coming with JointSuspension as well.
×
×
  • Create New...