Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by chillypacman · Nov 13, 2012 at 09:44 AM · animationtransformbonematrix

Manually set transform on certain bones in skinnedmeshrenderer

I have an animated model and I'd like to make the character be able to point in any given direction (maybe using something like transform.forward).

What I've done is created an arm outstretched 'animation' to the model and applied a mixingtransform to the arm so I can play any animation and then play the 'point' animation so whatever his animation is he can point.

The issue is that he only points forwards and despite trying to add rotations to the root arm transform nothing works, the skinned mesh renderer seems to outrank it.

So any ideas how I can do this?

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Seth-Bergman · Nov 13, 2012 at 10:02 AM 0
Share

I believe it should be possible, but I've not pulled this one off yet myself.. if you do figure it out, be sure to pass on any pointers! but I can at least offer an easy alternative:

http://docs.unity3d.com/Documentation/$$anonymous$$anual/AnimationScripting.html

look at the Additive example..

you can create an animation for "left point" and "right point", and use the animation.normalizedTime of the animation to set the "x value" of your direction to point..

now repeat the whole thing with an "up" and "down" point anim as well.. you can set these each individually, to wind up with your dynamic direction!

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Meater6 · Feb 12, 2013 at 01:56 PM

Take a look at this:

http://answers.unity3d.com/questions/327196/rotating-a-bone-via-scripts.html

May be what your looking for...

Sorry for being so late, but better late than never! ;)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Attaching an object to an ongoing animation 1 Answer

Capture positions and rotations of all bones at a specific frame of an animation clip 1 Answer

Added rotation AFTER the rotation from animation clip ( rewarding 400 points to whoever solves this) 1 Answer

No tranform animation on root bone from maya.mb 6 Answers

Matrix to transform bone orientation to world orientation 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges