Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by jerry-cuautle · Sep 01, 2013 at 03:56 PM · movement script

Chopping Enemies in half.

Hello I got everything setup I got blades, weapons, and items. I got player already setup but I got Cops from Pokemon as enemies I want a script that I can cut them in half or more parts like metal gear rising and I need that script. This is my last question. And main menu I got 4 options Story, VR Mission, Collections, and quit. how can I go to those different option without going to level 1.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by DESTRUKTORR · Sep 01, 2013 at 04:10 PM

You will need to procedurally "shatter" or "slice" the mesh. To do this, you'll need to get the vertices from the mesh, then add vertices along the line you want to cut, then split the array of vertices (and possibly also the triangles and UVs), and re-build the meshes, separately.

However, I might suggest not going after such a daunting task, just yet, as one can achieve a near-perfect simulation of actual variable mesh slicing with considerably less work by simply keeping sliced versions of the original meshes on hand, and replacing the original mesh with those, when the original mesh is cut.

However, if you were not able to find a script that was pre-written about this on the Unify Wiki, and are not willing to pay for something from the asset store (such as this, and believe me, there's a reason it's so pricey :P this is a very hard mechanic to implement, properly), you're not likely to find anyone here who would be willing to go out and write this entire system for you, free of charge.

I will not readily accuse you of coming here with the purpose of having someone else write the entire script for you (which, in all likeliness, would be more than one script, anyway), though without any contradictory statement from you, I'd be hard-pressed to believe otherwise. Just know that Unity Answers is intended for relatively simplistic questions that have relatively simplistic answers, and not a place to ask people to do your work for you, free of charge.

Beyond that, you have my best wishes for your project, and I hope my answers were suitable enough to point you in the right direction.

Best of luck.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jerry-cuautle · Sep 01, 2013 at 09:20 PM 0
Share

I understand. One more thing. I made a boss battle. when the boss fire missiles I want my character to jump rocket to rockets and cut off the enemy missile launcher how can I do that. Before that I want the screen show buttons for android like L1+joystick up. ,I understand. One more thing. I made a boss battle. when the boss fire missiles I want my character to jump rocket to rockets and cut off the enemy missile launcher how can I do that. Before that I want the screen show buttons for android like L1+joystick up.

avatar image TSRajesh · Sep 02, 2013 at 02:23 AM 0
Share

Hi Jerry,

If your character is a rigidbody and the projectile has a collider, It shouldn't be difficult to jump on it. You just may have to calculat the forces correctly so that you stay on it... Actual implementation of what you describe will merit a huge article.. You'll have better luck if you ask specific, answerable questions..

Also, If Destruktor's answer appears right, Please do the courtesy of accepting the answer and/or close the question before co$$anonymous$$g up with a new question...

Regards

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

18 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Physics based movement (Moving to fast) 1 Answer

How to make a top down character snap to different directions 0 Answers

Hello guys i have a problem I want to get the moving the ball throwing like curve and here's my code please help me I've been stuck this in 6 days. hope you guys help me with my problem. 0 Answers

Move character with AddForce 2 Answers

Laggy Movement 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges