Quantcast
Channel: Questions in topic: "breaking"
Viewing all articles
Browse latest Browse all 16

Detaching an Animated Limb?

$
0
0
I have an animated spider made from cubes. If you shoot a leg, its transform.parent will be set to null, and the RigidBody component will be added. This makes the leg break off and enter the scene with physics, as expected. However, the leg will still receive animation data from the parent it's no longer attached to. One solution I've found is to clone the detached leg using Instantiate(), then delete the original. But this will cause all references to the original leg to be lost, and it incurs some unnecessary overhead. Is there an alternative that doesn't require me to delete the original leg?

Viewing all articles
Browse latest Browse all 16

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>