Rotation 3D model
post and replies
Return to the Rotation 3D model thread
Login to post to this thread
Rotation 3D model
 Jun 4 at 11:47PM

Felix Yepez
4 Posts

Hi, I´m learning about EJS and I need to rotate a cylinder around Z axis using a variable (angular velocity). Could I get any example about that?
Thanks

Re: Rotation 3D model  Jun 05 12:54AM

lookang
190 Posts

define these variables in variables page t dt angle omega
evolution page set t and dt as independent and increment
d (angle)/dt = omega
in the cylinder3D set Transformation [[angle,0,0,1]] // first is angle, 2nd is xaxis, 3rd is yaxis and 4th is zaxis
set attached example
Post edited June 5, 2017 at 12:55 AM EST.
Attached File: ejss_src_rotate3d.zip
OSP@SG blog
OSP@SG Digital Library

