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
-1
Question by James73 · Oct 03, 2012 at 06:20 AM · playerlevelhowsplit

How Can I Make My Player Split Into Pieces When I Loose The Level?

How Can I Make My Player Split Into Pieces When I Loose The Level Like On Redball?

Comment
Add comment · Show 3
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 Fattie · Oct 03, 2012 at 07:48 AM 2
Share

this is a basic technique in video games

you SWAP the whole thing for a different model.

for example, you might have "my spacecraft normal" and "my spacecraft is smashed on the ground" and "my spacecraft flying in to pieces"

there are 1000s of questions on here about it

avatar image Outlaw Lemur · Oct 04, 2012 at 11:55 PM 0
Share

One word: Animation

avatar image fafase · Oct 05, 2012 at 05:18 AM 0
Share

yep, animation. But the asker seems to be on the dawn of his program$$anonymous$$g career so...

2 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by Stabiee · Oct 03, 2012 at 10:49 AM

The best way of doing this is if you use a animation with another model, so tell it to swap to another model with a animation of it breaking up. You will need to make the animations in a 3d modeling program such as Blender. im sure there are youtube videos on it some where as i don't tend to do my own animations.

Comment
Add comment · Show 3 · 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 James73 · Oct 03, 2012 at 11:07 PM 0
Share

Can u give me an example swapping script plzz?

avatar image James73 · Oct 04, 2012 at 04:36 AM 0
Share

c'mon, Any1?

avatar image Screenhog · Oct 04, 2012 at 11:52 PM 0
Share

To make a swapping model script, you just:

  • deactivate/destroy the object that's about to blow into bits

  • instantiate a prefab at the exact place where the previous object was destroyed

It's not particularly complex.

avatar image
0

Answer by fafase · Oct 04, 2012 at 05:44 AM

Might sound weird to some, but what about unparenting all children, adding a rigidbody and add an explosion in the middle of the object.

It will look like your character is bursting from inside.

Comment
Add comment · Show 9 · 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 James73 · Oct 04, 2012 at 10:53 PM 0
Share

I've thought about that - it sounds cool too, but I'd really like it to split into pieces

avatar image James73 · Oct 04, 2012 at 11:38 PM 0
Share

ok had a go at righting the script:

var Level = 1; var Is$$anonymous$$ill = true;

function Start(){}

function OnTriggerEnter (trigger : Collider){ if(trigger.gameObject.name == "Player"){ if(Is$$anonymous$$ill == "false"){ Application.LoadLevel(Level);} if(Is$$anonymous$$ill == "true"){ ConfigurableJoint.swapBodies.Player = PrefabType.Split; yield.WaitForSeconds(2); Application.LoadLevel(Level);}} }

Theres are errors saying: unexpected token '.' in WaitForSeconds and also an error saying to access swapBodies I need some instance of ConfigurableJoint. Can you help me fix this?

avatar image Screenhog · Oct 04, 2012 at 11:54 PM 1
Share

Why are you using ConfigurableJoint?

avatar image James73 · Oct 05, 2012 at 01:16 AM 0
Share

ok - so I don't need to? lol - I can remove it

avatar image James73 · Oct 05, 2012 at 01:39 AM 0
Share

ok damn still can't get it working - do u know how I can fix it?

Show more comments

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

13 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

Related Questions

Life Player loads another level 1 Answer

How to update unity web player 0 Answers

Change scenes from area? 1 Answer

Designing a room as efficiently as possible 2 Answers

Score Question Java Script, problem 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