Search Feedback

50
votes

Request: “GetBoneLocalRotation” - Get the local bone rotation on optimised Mechanim animated character.

Animation

-

-

Mechanim has a new function since 5.2 “SetBoneLocalRotation”
This function works great to set a rotation to a bone directly, sadly there is no way to get the bone current local rotation when using a “Optimize Game Objects” enabled Mechanim transform hierarchy. What we are requesting is a new function to get the local rotation. Something along the lines of “GetBoneLocalRotation” would work well.

The simple solution of exposing the necessary bone transforms and getting their local rotation will not work, because they return the local rotation in comparison to the root gameobject, not the their parent bone due to their Optimised status removing them from the hierarchy and placing them under the root gameobject.

Thank you!

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(9114)

2D

(225)

Ads

(40)

AI & Navigation

(68)

Analytics

(96)

Animation

(309)

Asset Store

(229)

Assets

(493)

Audio

(158)

Cloud Build

(95)

Collaborate

(32)

Docs & Tutorials

(198)

Editor

(2104)

Everyplay

(13)

Game Performance Reporting

(13)

General

(819)

Graphics

(768)

GUI

(366)

Input

(146)

Licensing

(75)

Networking

(158)

Physics

(343)

Platforms

(405)

Profiling & Optimization

(69)

Runtime

(162)

Scripting

(1022)

Terrain

(150)

WebGL

(131)