Sign in to follow this  
Followers 0

Swinging Lightbulb

6 posts in this topic

Posted (edited)

Hi everybody!

I'm kind of stuck here...

I want to make a lightbulb that swings on the end of a wire.

The wire I've done with spline dynamics, but how do I attach the lightbulb object to the end of the wire so that it follows the motion?

TIA

Erik

Edited by 3DKiwi
Topic moved. Posted in wrong forum.

Share this post


Link to post
Share on other sites

Posted

Here's a simple XPresso set up.

The spline's second point (Index1) position is fed to the sphere position.

When the end point moves, the bulb will follow.

HTH. Cheers, Alan.

Share this post


Link to post
Share on other sites

Posted

Alan,

That worked perfectly!

Now the next challenge:

What if I also want it to rotate according to the rotation of that vertex?

There's a challenge for you!

/Erik

Share this post


Link to post
Share on other sites

Posted

He-he! Catch me if you can, Erik. :welcome:

A couple of Constraints and a little dash of COFFEE courtesy of Chris Montesano.

Move or rotate the 'Move or H-Rotate Me' null.

Bulb aimed to first spline point.

Flex spline length fixed.

Bulb can be rotated in H.

The XPresso could probably be tidied up a little. Possibly without the Constraint tags but they are easier.

Anyway, it works. wink.gif

Cheers, Alan.

PS. The COFFEE is from the current 3DAttack magazine. Worth getting for this tutorial alone.

Share this post


Link to post
Share on other sites

Posted

Those files aren't showing up for me.. Is there a way to get those posted again?

Share this post


Link to post
Share on other sites

Posted (edited)

Could not he simply use aim constraint at hidden null attached to desired vertex?

EDIT:just saw that you want rotate according to vertex :)

Edited by hsrdelic

Share this post


Link to post
Share on other sites
This topic is now closed to further replies.
Sign in to follow this  
Followers 0