different movements

Asked by ytang

Hi all,

I know that the HelixEngine can make an object do the rotational motion and the translational motion at the same time.
###################################################################################
my question is how can I make an object rotates at first and then translates in another direction?

for instance, I want one object rotates 1000 timesteps and then stop the rotational movement, then the object travels downward. I want to do this kind of motion periodically.

best,

ytang

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Jan Stránský
Solved:
Last query:
Last reply:
Revision history for this message
Best Jan Stránský (honzik) said :
#1

Hello,

There are several approaches:
- use RotationEngine and TranslationEngine and vary their dead attributes.
- implement your own kinematic engine
- ...

Cheers
Jan

Revision history for this message
Jérôme Duriez (jduriez) said :
#2

You can also directly set
b.state.vel # b is a Body
or b.state.angVel

for "non-dynamic" bodies (b.dynamic = False)

See https://yade-dem.org/doc/user.html#motion-constraints

Revision history for this message
ytang (ytang116) said :
#3

hi Jan and Jerome,

thanks!

Revision history for this message
ytang (ytang116) said :
#4

Thanks Jan Stránský, that solved my question.