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 talyon · May 27, 2014 at 08:37 AM · c#gameobjectenemyspawnscale

Extend only a part of an object unity

I want to make an enemy that comes into play when stretching the "tentacles" to touch the wall with everyone. If you then hit one of these tentacle disappears and if you hit one more time it disappears another and so on.

This is a picture of how it should be the enemy alt text

If you use transform.Scale.x += scaleAmmount does not work because it extends from both sides.

For destroy one "tentacle" at a time I suppose that is not difficult, once attacked the four "tentacles" enough to destroy one at a time at each collision.

Do you have any advice for me?

immagine.png (19.1 kB)
Comment
Add comment · Show 2
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 Fornoreason1000 · May 27, 2014 at 09:02 AM 0
Share

IS you enemy a rigged model? if so i suggest separating the tentacle from the body(as different objects) but still have them rigged, the bones in the tentacle will do the stressing when you move them.

avatar image talyon · May 27, 2014 at 09:11 AM 0
Share

I still do not know, but I think so.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Catlard · May 30, 2014 at 09:05 AM

When you want to make a pivot point for an object in unity, you've got to make sure you do four things:

1) Create an empty parent object, and put it where you want to pivot the object (one of your tentacles). The empty parent object should (at first) have a scale of Vector3.one. You can vertex snap, to get the empty parent object exactly how you want it next to the object you will pivot, using the instructions for vertex snapping on this page: http://docs.unity3d.com/412/Documentation/Manual/PositioningGameObjects.html

2) Make your empty parent object the parent of the object you will pivot (in your case, the tentacle arm).

3) Now, when you scale the parent object to something other than Vector3.one, it will cause whatever mesh or picture the child object is using to scale out from the pivot.

4) Make sure that the Gizmo Display Toggle for Global/Local is set so that the pivot point appears not in the center of the object, but where you want it to pivot from.

Does that help?

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.

Follow this Question

Answers Answers and Comments

22 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 avatar image avatar image avatar image avatar image

Related Questions

How to make my enemies spawn at spawn point, but not randomly? 1 Answer

Distribute terrain in zones 3 Answers

Switch() problem [C#] 1 Answer

Lerp in Coroutine (Crazy Behavior) 2 Answers

Desync between host and client. 0 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