Комментарии:
this is the genius
ОтветитьGreetings, is there a way to make the limbs disappear after a short amount of time for being dismembered from the main body?
Ответить//New Example Code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RagdollDismember : MonoBehaviour {
private RagdollDismembermentVisual rdv;
private CharacterJoint joint;
public float breakForce = 50f;
void Start () {
dv = GetComponentInParent<RagdollDismembermentVisual>();
joint = GetComponent<CharacterJoint>();
if(joint)
joint.breakForce = breakForce;
}
private void OnJointBreak(float breakForce)
{
if(rdv)
rdv.Dismember("Head");
}
}
Great music, and the price is fair. I'm extremely grateful for your documentation
ОтветитьThis music is as comforting as listening to chat notifications for 5 minutes.
ОтветитьI'm wondering if it's possible to dynamically choose a group of random parts to explode at runtime? For example; in the case of someone hit with a grenade
ОтветитьI have a question do I have to program anything for this to work
ОтветитьThank you so much I really needed this
ОтветитьIt isn't worth 38€
ОтветитьHo does this work with mecanim?
Ответитьi don't like a music
ОтветитьHi, does this work with Puppetmaster?
ОтветитьOmg you’re channel is incredible continue the great work
ОтветитьHow do I get the dismemberment script? I really need it
ОтветитьWhat is the performance impact, and is it up to date with unity 2019.2 and up?
Ответитьthat's amazing af
Ответитьvan be used for any character
Ответитьdo I have to write the script or do it come with asset?
Ответитьexcelent!!
ОтветитьCode:
========================
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class exampleScript : MonoBehavior {
private Dimemberment dismemberment;
private CharacterJoint joint;
void Start () {
dismemberment = GetComponentInParent<Dimemberment>();
joint = GetComponent<CharacterJoint>();
joint.breakForce = 0;
}
private void OnJointBreak(float breakForce)
{
dismemberment.Dismember("Head");
}
}