x


weapon bobbing

HI GUYS

I saw a few videos about some games where the child object doesn't move exactly at the same time as it's Main Object. So there's kind of delay or time-shift. I tried this with animations and a few other things... but is there a code on how to delay the child objects... Here are some games or videos:

http://www.youtube.com/watch?v=byav2QpYdEk http://www.youtube.com/watch?v=Akr-KEJRN3c

more ▼

asked May 27, 2011 at 12:26 PM

bubblegumsoldier gravatar image

bubblegumsoldier
46 73 58 62

The question is unintelligible. What exactly in the videos you are interested in?

May 27, 2011 at 12:57 PM Santa

The question makes sense, but the videos seem unrelated. In answer: just don't child them then but make them follow the parent with a delay. Child means the parent transform directly influences the child's transform.

May 27, 2011 at 01:04 PM Joshua

Can you include the minutes/seconds where the effect happens in the video. How do you even know the objects are parent/child?

May 27, 2011 at 01:05 PM GesterX

well I don't really know if the weapons are child objects but I think so because in many fps games it's like this. By the way this effect happens almost every time when the guy who is playing moves the mouse. You can see this at the avert fate video very good. The weapon has a bit of rotation. And how does this delay function like Joshua said work? Thx for the comments

May 27, 2011 at 01:33 PM bubblegumsoldier

That's not a delay. You talk about the weapon-bobbing. You have to use either an animation and animate it the way you want it or write a script that moves the weapon this way if you walk.

You could have mentioned that you talk about the weapon.
Ask specific questions !

May 27, 2011 at 02:46 PM Bunny83
show all comments (comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

so how can I do weapon bobbing.

more ▼

answered May 28, 2011 at 11:06 AM

bubblegumsoldier gravatar image

bubblegumsoldier
46 73 58 62

You did a nono henry as this is not an answer to your question. :) I'd do bobbing with additive animations to go easy on the CPU.

May 28, 2011 at 11:16 AM save

so how do you mean that and sorry for the answer I just wanted that somebody sees this at the questions. What are additive animations? and where and how can I put this in the code... how do the animations have to look like?

May 28, 2011 at 11:35 AM bubblegumsoldier

The additive is to be able to transform back to an idle animation anywhere in your current animation. The animations would be easier to create in a 3d-modelling program such as 3d Studio, Maya, Blender or Cinema 4D. I suggest you take a look in the reference: http://unity3d.com/support/documentation/Manual/Animation%20Scripting.html

May 28, 2011 at 11:39 AM save

sorry but I didn't understand that very good...

Jun 04, 2011 at 12:07 PM bubblegumsoldier

I could maybe give u my look round script and then you could add the right codes to the right place in the script and tell me which animations I need...

here's the code in an url:

http://spetools.de/code/e1d2a8a076be14d979157ffb8b8f5d93

Jun 04, 2011 at 12:35 PM bubblegumsoldier
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1673
x843
x625
x272
x34

asked: May 27, 2011 at 12:26 PM

Seen: 1911 times

Last Updated: Jun 04, 2011 at 12:36 PM