# Inventing A Wheel

## Recommended Posts

Hi there,

here's the illustration of a problem I've got: I'd like to create a wheel-like simulation, i.e. a wheel-like object (a tube with caps) must be able to roll and turn. To keep things simplest I've got the following set-up: angular velocity, X axis (angvelx) =50 (it makes the wheel push itself, move); angular velocity, Y axis (angvely) =50 - this is to turn left\right (to turn left constantly in this case).

Thus the wheel is supposed to move along a counter-clockwise circle-like trajectory. Instead it turns left and then angvelx starts banking it and barelling along global X axis - so it never moves as supposed, - as if angvelx was applied in global coordinate system.

Is there a way to make angvelx be a applied in localobject coordinate system so that it could move like a barrel around a circus arena?

see the attachment for a simple illustration:

wheel_problem.rar

EDIT: I've changed the setup a bit to illustrate the issue clearly.

##### Share on other sites

I can not extract RAR file..

but I think problem is here : <<this is to turn left\right (to turn left constantly>>

Velosity and AngVelosity on RBDobj_node are just "initial state"

-- just for first frame.. -on creation (initial state)

##### Share on other sites

I can not extract RAR file..

Oh, bugger! And nobody had mentioned that! =)

Thanks, Val. Now I have re archived and re uploaded the file. (see above post)

I can not extract RAR file..

but I think problem is here : <<this is to turn left\right (to turn left constantly>>

Velosity and AngVelosity on RBDobj_node are just "initial state"

-- just for first frame.. -on creation (initial state)

This works a little bit differently - RBDState is used to modify the angular velocity (set to 'Set Always').

##### Share on other sites

How about creating angular velocity using previous velocity?

It's a little messy though...

wheel_problem_sho.hipnc.zip

##### Share on other sites

How about creating angular velocity using previous velocity?

It's a little messy though...

Ouch, Sho! that's hot!

Looks like a bit of voodoo magic though Checking the code right now

Thanks. Maybe somebody else can come up with a less sophisticated solution?

EDIT: no magic, everything looks pretty self explanatory (not something you are used to in an application XYZ though)

## Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

Only 75 emoji are allowed.

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×