point point1 = point( 0 [ m ], 0 [ m ], 0 [ m ] ); body body1 = body( color = RGB( 229, 229, 229 ) ); scalar m = 1 [ kg ]; scalar b = 100 [ N/s2 ]; scalar alpha = 45 [ deg ]; scalar v0 = 5 [ m/s ]; vector vector1 = rotate( projectX, projectZ, alpha ); point Zero = point( 0 [ m ], 0 [ m ], 0 [ m ] ); body body2 = body( color = RGB( 255, 153, 153 ) ); condition condition3 = transVelocity( body2, vector1, body1, point1, v0 ); solid solid1 = sphere( point1, 0.01 [ m ], mass = m ); point point3 = point( 1 [ m ], 0 [ m ], 0 [ m ] ); sensor sensor1 = b*time*time; function function1(x [ N ]) "??????? ???????? ???? " = #x; force force4 = force( body1, point1, projectX, function1, list( sensor1 ), work = on: ); sensor sensor2 = bodyDisplacement( body1, point1, projectX, body2, Zero ); sensor sensor3 = bodyDisplacement( body1, point1, projectY, body2, Zero ); reform reform1 = stop( ); event event1 = reformsBySensor( list( reform1 ), sensor3, -5 [ m ] ); /\/////////////////////////////////////////////////////////////////////////////////// /\ Object Attachments body body1 < (point1, solid1 ); body body2 < (Zero ); /\/////////////////////////////////////////////////////////////////////////////////// /\ Immovable body ; set ground = body2; /\/////////////////////////////////////////////////////////////////////////////////// /\ Units of Measurement; set units = SI;