How can I control the variables in the Partial engine during the simulation?
I want to move the facet in a sinusoidal motion.
So, I used the Partial engine(Rotation Engine) and changed angular velocity with virtual time.
For example, O.engines is defined as follows;
O.engines=
And the angularVelocity is changed by function, cal_wall_rot()
def cal_wall_rot():
global rad_vel
rad_vel = "function of sine(O.time)"
Finally, the function, "cal_wall_rot()" is called in every step.
O.engines=
However, the variable "rad_vel" is not changed during the simulation.
Anyway, I have found another way to change the velocity of the facet using b.state.
Is this the only way to control the motion of bodies with time?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- JINSUN LEE
- Solved:
- Last query:
- Last reply: