vircadia-native-core icon indicating copy to clipboard operation
vircadia-native-core copied to clipboard

flow: Capsule collider type

Open JulianGro opened this issue 5 years ago • 4 comments

Currently there is only sphere colliders usable for flow. https://apidocs.vircadia.dev/MyAvatar.html#.FlowCollisionsOptions This is fairly limiting and doesn't allow more complicated stuff like skirts. With just one sphere per bone, you cannot have a skirt influenced by flow without it clipping into the legs or even the hip. The closest alternative is to not use flow on the skirt at all and weight the skirt to the legs.

If we take this collider from an fst file as an example:

flowCollisionsData = {"LeftArm":{"offset":{"x":0,"y":0.02,"z":0},"radius":0.05,"type":"sphere"}}

I would suggest adding a capsule collider type and adding a tail offset to essentially get two spheres which are connected to a capsule:

flowCollisionsData = {"LeftArm":{"offset":{"x":0,"y":0.02,"z":0},"radius":0.05,"tail":{"x":0,"y":1.02,"z":0},"type":"capsule"}}

This is in line with the current VRM 1.0 spec draft. https://github.com/vrm-c/vrm-specification/tree/master/specification/VRMC_node_collider_1.0_draft

JulianGro avatar Jan 03 '21 08:01 JulianGro

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 09 '21 20:05 stale[bot]

:angry:

JulianGro avatar May 09 '21 20:05 JulianGro

Hello! Is this still an issue?

stale[bot] avatar Dec 23 '21 22:12 stale[bot]

Hello! Is this still an issue?

stale[bot] avatar Aug 31 '22 02:08 stale[bot]