Jump to content

Search the Community

Showing results for tags 'control'.

  • 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. camera problem!

    Привет. У меня вот какая проблема. Я привязываю камеру к PlayerActor, но мне нужно поднять ее выше, по оси Z. (Вид из головы). У меня маштаб больше единичного. Я делаю так: PlayerActor actor; PlayerPersecutor camera. init (){ .. camera.setAnchor(vec3(0.0f,0.0f,10.0f)) camera.setTarget(actor); engine.game.setPlayer(camera); .. } Так работает плохо, так как камера зарывается в землю, или блокируется на некоторых углах. Потом я делал так. PlayerActor actor; PlayerSpectator camera. init(){ .. engine.game.setPlayer(camera); .. } update(){ .. vec3 tmp = actor.getPosition(); tmp.z += 10.0f; camera.setPosition(tmp); .. } Так работает, но смотрит вниз. Если изменять Direction камера перестает работать ( actor не контролируется ). Как мне быть? Hey. I have here what the problem is. I tie the camera to PlayerActor, but I need to pick it up, along the axis Z. (View from the head). I have more than a single scale. I do so: PlayerActor actor; PlayerPersecutor camera. init () { .. camera.setAnchor (vec3 (0.0f, 0.0f, 10.0f)) camera.setTarget (actor); engine.game.setPlayer (camera); .. } This is how bad, because the camera burrows into the ground, or is blocked in some corners. Then I did so. PlayerActor actor; PlayerSpectator camera. init () { .. engine.game.setPlayer (camera); .. } update () { .. vec3 tmp = actor.getPosition (); tmp.z + = 10.0f; camera.setPosition (tmp); .. } So works, but looking down. If you change the camera stops working Direction (actor is not controlled). How can I be?
×
×
  • Create New...