Jump to content

Search the Community

Showing results for tags 'bone lookAt eyes'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hi guys, I am experiencing an issue in doing something that I thought to be pretty easy: I need the equivalent of lookAt for bones, since I plan to move the eyes of a rigged character via bones. So I created a test rig in blender and tried to workout the code to properly rotate the bones to lookAt a given target and… I failed. I attached a screenshot showing the blend file in Blender. Babylon file: https://www.dropbox.com/s/fu5fgl5zckqh5dh/testeyes.babylon?dl=1 Blend file: https://www.dropbox.com/s/ybo93nll7na7zyj/testeye.blend?dl=1 Playground demo: http://www.babylonjs-playground.com/#18WJHH#2 The problem I’m having is that the eye sphere seems rotating using the bone location as pivot point and, in addition, it appears to drift instead of being fixed at its position. In any case I did not find the proper rotation quaternion to put into the bone matrix. I thought that if a bone is attached to a parent bone (in this case, the one for the head), keeping the x,y,z components of the localMatrix and varying the rotation quaternion, the position should be kept, isn't it? Is it possible the problem comes from the bone origin being at the center of the sphere? Any clues? Thank you all in advance.
×
×
  • Create New...