You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you add an API for the Power Profiles so that I could change the power setting for one of the bones at runtime.
A method like this should be sufficient:
Additionally a component that we could attach to the ragdoll bone, that could be called and have its' power settings changed at runtime.
Right now I solve this issue by using RagdollDefinitionBindings to get the BoneName and then get the RagdollBone by again using RagdollDefinitionBindings:
if (bindings.TryGetBoundBoneName(joint, out BoneName boneName)) {
if (bindings.TryGetBone(boneName, out RagdollBone bone)) {
bone.PowerSetting = PowerSetting.Powered;
bone.Rigidbody.isKinematic = false;
bone.Rigidbody.collisionDetectionMode = CollisionDetectionMode.Continuous;
}
}
It could be awesome if we could simplify this.
The text was updated successfully, but these errors were encountered:
Could you add an API for the Power Profiles so that I could change the power setting for one of the bones at runtime.
A method like this should be sufficient:
Additionally a component that we could attach to the ragdoll bone, that could be called and have its' power settings changed at runtime.
Right now I solve this issue by using RagdollDefinitionBindings to get the BoneName and then get the RagdollBone by again using RagdollDefinitionBindings:
It could be awesome if we could simplify this.
The text was updated successfully, but these errors were encountered: