Neos-Metaverse / NeosPublic

A public issue/wiki only repository for the NeosVR project
195 stars 9 forks source link

GravitySpace always in Global Space under user #2142

Closed shiftyscales closed 3 years ago

shiftyscales commented 3 years ago

Describe the bug

DynamicBoneChains that are under a user will always have theri gravity calculated in global space when under a user. E.g. the hair on my avatar will shift downward further the smaller I am.

Relevant issues

None I am aware of.

To Reproduce

Expected behavior

Screenshots / Video

https://user-images.githubusercontent.com/54213390/116837033-a60c0780-ab7d-11eb-9e8f-4ca578244c4e.mp4

https://user-images.githubusercontent.com/54213390/116836874-22eab180-ab7d-11eb-9ff8-1fce4e588efa.mp4

Bug information (please complete the following information):

Additional context

I had first noticed this issue as anytime I would scale my avatar down, my hair would sink into my eyes. Afterward, I investigated and discovered setting the GravitySpace should account for this, but doesn't while the DynamicBoneChain is under a user root for some reason.

Reporters:

Shifty# 7944

Frooxius commented 3 years ago

This is intentional, there's a property UseUserGravityDirection that overrides the space based on the user's current gravity/space. This is so in worlds with radial or flipped gravity, the dynamic bones automatically pick it up and move appropriately.

Try unchecking this option, which should make the gravity behave the same when it's under user and when it's not.

shiftyscales commented 3 years ago

Thanks for clarifying!