pafuhana1213 / KawaiiPhysics

KawaiiPhysics : Simple fake Physics for UnrealEngine4 & 5
MIT License
1.92k stars 287 forks source link

Spherical, Capsule, Planar Limits - small enhancement request #5

Closed oivio closed 5 years ago

oivio commented 5 years ago

Currently Spherical, Capsule, Planar Limits Offset Location and Rotation can be driving only by bone. My enhancement request is being able to set them as well in "External Force" or maybe keep it in same place. This will help to interact with the outside forces.

To show that idea I did create picture with photoshop.

kawaii

ありがとうございました

pafuhana1213 commented 5 years ago

Hi oivio!

Do you want to apply different external forces for each bone? I may not understand your request correctly so I want to know more specific use cases.

Thanks

oivio commented 5 years ago

It does not have to be as "External Force" It could be kept at "Spherical, Capsule, Planar Limits" tabs. Just to have the ability to set visibility of pin location and rotation of does limit. But I did find some other way of doing it. Currently, I did create "virtual bone". Before applying kawaii physics I do set location and rotation of that "virtual bone" and then I do use this "virtual bone" in "sphere limits". As for example: kawaii2

pafuhana1213 commented 5 years ago

Does it mean that you want to control with AnimationBP variables by publishing to AnimNode pins? Since it is not possible to expose only OffsetLocation and OffsetRotation to the pin in the AnimGraph specification, It should be published like the image below image

It was like this during development, but because it was very inefficient, it was omitted.I forgot the details, but the main reason is very pool iteration for preview and edit parameter and risk of force reset parameter

If you are interested this, try to add meta = (PinHiddenByDefault) to UPROPERTY of SphericalLimits, CapsuleLimits, PlanarLimits, and add BlueprintType to USTRUCT of FSphericalLimit, FCapsuleLimit, FPlanarLimit.

Personally, I think your workflow that uses virtual bones is the best.

oivio commented 5 years ago

Few days ago I did actually manage to use "meta = (PinHiddenByDefault)" but, for the same reason, as you did say "I did not use it. it was very inefficient" That's why I ask for a request. So, in the meanwhile, I did find workflow with "virtual bone".

Thank you for answering and I wish you to have a great day.

ありがとうございました