Jump to content

Search the Community

Showing results for tags 'mat4'.

  • 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. mat4 methods

    Hello trying to use controller to rotate player camera // get head position in world coords Player player = engine.game.getPlayer(); Mat4 player_transform = player.getWorldTransform(); Mat4 hmd_transform = engine.oculus.getDevicePose(OCULUS_DEVICE_HMD); Mat4 hmd_transform_world = player_transform * hmd_transform; quat i_rotation = player.getWorldRotation();//(1) woking - but no hmd transform //i_rotation = rotation(hmd_transform_world); (2) - not working - and controllers go unresponsible //i_rotation = hmd_transform_world;// (3) - nothing i_rotation = quat(vec3(1, 0, 0), R_thumb.y) * conjugate(i_rotation) * quat(vec3(0, 0, 1), -R_thumb.x);// apply delta pitch/yaw quat camera_rotation = conjugate(i_rotation); player.setWorldRotation(camera_rotation); with (1) pitch/yaw changing are working - but rotating around wrong axis if hmd rotated with (2) or (3) nothing happening - no errors, no controller responces, no vibratiion at button pressing ( how to account hmd rotation matrix for quat axis rotation? do I incorrectly assign mat4 to quat? also there no .getRight() .getForward() ... methods in uscript? (
×
×
  • Create New...