• 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 Xatoku · Mar 31, 2012 at 09:33 PM · followparentinggrabthrow

Grab/Throw Parenting

I am trying to figure out how I could have one Player throw an Enemy by the Enemy's foot. My idea is to have an empty gameobject on the Player's hand, and when grabbed, the Enemy would follow the Position/Rotation of the empty gameobject until he is let go. This way, I could move the empty game object accordingly until it lines up the foot with the hand.

I think that way will work, but are there any others? I ultimately would need some form of dual parenting, where the Enemy would follow it's Foot's position, but without distorting the bone connections. The problem with my first solution is that the object might not line up with different enemies due to their pivot points not always being the same.

If somebody could tell me if I'm on the right track, or tell me of another way to handle this grab/throw mechanic, it would be highly appreciated.

I understand that this isn't a typical question, but if anyone's willing to lend me a quick answer it would be greatly appreciated.

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
0

Answer by garner · Apr 01, 2012 at 04:48 PM

Yeah that's right, translate and rotate of the hand adds translate and rotate to the enemy.

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

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Grab script errors 1 Answer

Follow an object with camera -1 Answers

Simple follow script 4 Answers

Make instantiation follow me. 1 Answer

Particle offset on parent.transform 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges