#can we get a bone rotation, for example the head?

1 messages · Page 1 of 1 (latest)

cyan vessel
#

I mean the bone rotation, if an animation moves the head 25 degrees in X, the query should return 25 in X. Maybe thiscan do anything?

sullen hinge
#

query.bone_orientation_trs('head').r.x

#

Tho that query has been unreliable for me recently

small dust
#

It does work like I checked

cyan vessel
sullen hinge
#

You'll have to use a complex expression cuz otherwise the parser complains

small dust
#
"pre_animation": [
  "v.state = q.is_in_water ? q.bone_orientation_trs('bone_3') : 0;",
  "v.state = v.state != 0 ? v.state.t.z : 0;"
]
small dust
#

Transformation

cyan vessel
sullen hinge
#

T is transform/translation, which just means position

I think of it as rot_ation_ and trans_lation_

sullen wigeon
sullen hinge
#

Kept saying the player didn't have a head bone

#

The whole Molang system is kind of a mess these days tbh

#

The documentation certainly doesn't help either lol

sullen wigeon
#

Head works for me though

small dust
high kiln
#

Did you make it work? @cyan vessel

cyan vessel
#

and you?

#

it throws a log error saying that I need a queryable geometry

cyan vessel
twin hamlet
cyan vessel
sullen wigeon
# cyan vessel how?

not exactly sure, but I'm no longer using query.bone_orientation_trs cuz it doesn't suit my needs