Home Unity

Cutting help

polycounter lvl 10
Offline / Send Message
mountains polycounter lvl 10
e47f55c89f8611e2ada222000a9f3cf6_7_zps5cf89c0c.jpg

-This my problem- tHANK YOU VERy much. :) Fake cutting

ScreenShot2013-04-10at124459PM_zps666c515c.png
ScreenShot2013-04-10at123653PM_zps35941e9a.png
ScreenShot2013-04-10at123537PM_zps37d449f6.png
ScreenShot2013-04-10at123626PM_zps8f3f30ed.png
ScreenShot2013-04-10at125223PM_zps68f2e7a4.png
ScreenShot2013-04-10at10756PM_zps76aafca8.png
ScreenShot2013-04-10at34154PM_zps970ad6da.png

Replies

  • Farfarer
    Options
    Offline / Send Message
    If you want this done dynamically, it's a complex script. You're better off looking on the Asset Store for packages that do this.
  • mountains
    Options
    Offline / Send Message
    mountains polycounter lvl 10
    Not dynamically..

    I doing in maya... some different prepared cut. I want to sword animation When it touches the enemy. cutting (prepared cut) automatically work. example( A ) attack 90 degrees touch sword... enemy body (90 degress prepared cutting) automatically active.(work) (B) attack 60 degrees sword touch body( prepared cutting) active... this like Fake cutting.

    anyway .. thank you very much :)
  • JoshVanZuylen
    Options
    Offline / Send Message
    JoshVanZuylen polycounter lvl 5
    You would have to set up the object like a button to enable the object to react to a key press. Eg whe you press the left mouse button to attack. Then you need to right up a script that would enable all sub objects under the prefab to enable a preset up rigged body so that it can rol around n stuff. :D easier said then done.

    There is no way of doing this unless you animate the object braking in maya and then Inport the animation with object in to unity. You need to then set up the animation so it plays in unity then add a trigger to the object and the. You will need to write a script that will play the animation when a button is pressed when Looking at the object.
  • Beelzeboss
    Options
    Offline / Send Message
    you could maybe do it in code with a Mesh Filter and Mesh Renderer using hit.collider with this you can effectively swap out the mesh so when the object is hit by the sword you would destroy the old and filter in the new and possibly use physics for the break animation. or have it play a break animation from Maya when the new mesh is loaded
  • MikeF
    Options
    Offline / Send Message
    MikeF polycounter lvl 19
    keep it simple:
    -Create slice animation variations in maya
    -export as separate .fbx's
    -when sword collider enters barrel collider, check angle variable, swap with corresponding .fbx and play animation

    no physics in this method, but it would be quick and relatively cheap performance wise
  • mountains
    Options
    Offline / Send Message
    mountains polycounter lvl 10
    yeah MikeF I'm talking about like this.

    I creating object and slice in maya. already I cutting object in maya. ready for to disperse, ready to fall. One object but two pieces or more part for other sword attack angles. 90 degrees animation touch object. result : object 90 degrees cutting. thats it...

    Why cutting animation ? gravity ? cutting part automatically down.
  • MikeF
    Options
    Offline / Send Message
    MikeF polycounter lvl 19
    Sorry that last post is a bit unclear. From what i gathered you're wondering how to create the actual animation?

    if this is the case then you could either keyframe it by hand (something this simple would be easy to do) or simulate the slicing using dynamics then bake the simulation to keyframes.
  • mountains
    Options
    Offline / Send Message
    mountains polycounter lvl 10
    I explained again... :) thank you everyone.
    ScreenShot2013-04-11at112600AM_zps3f081606.png
  • cupsster
    Options
    Offline / Send Message
    cupsster polycounter lvl 11
    Does not look reasonable for me cause this way of cutting will limit positions from which sword animation matches cutting line.. If you pre-cut you just need to align your character to correct position at start of slice.
  • mountains
    Options
    Offline / Send Message
    mountains polycounter lvl 10
    Thank you very much guys.

    Sword touch area.. :) maybe like this box or... not box (direct : 3d models, monster vs.) :/ sword attack : Red (X) green (Y) yellow (Z)

    ScreenShot2013-04-11at63441PM_zps88c0cd0c.png
Sign In or Register to comment.