← Back to team overview

yade-users team mailing list archive

[Question #240225]: deactivate and activate engines in CombinedKinematicEngine

 

New question #240225 on Yade:
https://answers.launchpad.net/yade/+question/240225

Hi,
I want to ask, if it's possible to deactivate one engine and activate other, when some attribute of engine one is reached. For example:
Engine one starts. If it's Amplitude reaches a Value, engine one should stop and Engine two + three starts. is there any possibility?
Like:


CombinedKinematicEngine(ids=fctIds,label='comb')
	+HarmonicRotationEngine(ids=fctIds,rotationAxis=[1,0,0],zeroPoint=(0,0,0),rotateAroundZero=True,A=-.5,f=1,dead=False,)

If A reaches -.5 start stop the first engine and start the rest. Dead=True for engine one



	+HarmonicRotationEngine(ids=fctIds,rotationAxis=[1,0,0],zeroPoint=(0,0,0),rotateAroundZero=True,A=.5,f=1,dead=False) 
	+HarmonicRotationEngine(ids=fctIds,rotationAxis=[0,1,0],zeroPoint=(0,0,0),rotateAroundZero=True,A=.5,f=1,dead=False,)
    


Sry for bad english,
Best regards

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.