• 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 Kyle 9 · Apr 13, 2011 at 04:33 PM · meshcharacterscalecharactercustomization

Fatten character

I am making a pac man meets fat princess type game where a character goes through a maze and if they eat certain foods it makes themselves fatter.

I am not sure what the best way to make a character grow progressively fat is. This is not the largest part of the game objective so I do not want it to be too resources intensive.

What is the best way to make the character get progressively fatter?

I am using blender for the modeling.

Thanks for the help, Kyle King

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

4 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by AngryOldMan · Apr 13, 2011 at 04:44 PM

by scripting it's scale to increase when you pick something up something like

in the Update function check if you have activated your pickup, then call a function outside the update function with transform.localScale += expand and add a vector3 variable for how much you want it to expand by. I have the code to do this but I would like to see you make an attempt at it 1st. Here is the script reference for transform local scale

Comment
Add comment · Show 1 · 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 Kyle 9 · Apr 13, 2011 at 05:52 PM 0
Share

The script that I did is:

function Update () { if(Input.Get$$anonymous$$eyDown($$anonymous$$eyCode.F)){ transform.localScale += Vector3(0.001,0,0.001); } }

Is this how you did it?

avatar image
1
Best Answer

Answer by DanjelRicci · Apr 14, 2011 at 07:09 AM

Check this link to the Unity docs: Surface Shaders Examples. If you scroll down to the bottom of the page, you will find a shader that makes everything fat, without having to scale objects through code. It's way simplier, and resusts are better. Look: fat soldier shader

Comment
Add comment · Show 1 · 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 Kyle 9 · Apr 14, 2011 at 08:00 PM 0
Share

I am going to try this and see how it ends up looking.

avatar image
1

Answer by Kourosh · Apr 13, 2011 at 05:53 PM

Bobadebob is right, you can simply use Mathf.Lerp function or iTween to scale nicely over time. It'll look really nice if you scale parts of the body separately by different scales. Does not depend on your 3D modeling software. I really recommend iTween. It'll give you lots of animation features.

Comment
Add comment · 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
1

Answer by synapsemassage · Apr 13, 2011 at 08:32 PM

You could alternatively add skeleton (bones) to your character and make some animations that change your mesh to appear fat. This is quite flexible as you can influence certain body areas/parts by creating a special skeleton for your needs. Trigger your animations to grow your character fat. Scaling can be used additionally.

Comment
Add comment · 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

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

translating an accessory from source mesh to a targeted mesh 0 Answers

Scale collider independent of gameObject. 1 Answer

Big problem: Meshes crash memory from CharacterCustomization example 3 Answers

A Blender Character for Unity - Rigging Problem 1 Answer

Scaling the Mesh Collider 4 Answers


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