Home
last modified time | relevance | path

Searched refs:old_vx (Results 1 – 11 of 11) sorted by relevance

/dports/devel/efl/efl-1.25.1/src/examples/ephysics/
H A Dtest_velocity.c12 double old_vx; member
62 ax = (vx - velocity_data->old_vx) / delta_time; in _update_vel_cb()
63 velocity_data->old_vx = vx; in _update_vel_cb()
137 velocity_data->old_vx = 0; in _restart()
/dports/games/lbreakout2/lbreakout2-2.6.5/client/
H A Dballs.c162 float old_vx; in client_brick_reflect() local
189 old_vx = b->vel.x; in client_brick_reflect()
207 ball_mask_vel( b, old_vx, BALL_ADD_ENTROPY ); in client_brick_reflect()
209 ball_mask_vel( b, old_vx, BALL_NO_ENTROPY ); in client_brick_reflect()
/dports/science/mcstas-comps/mcstas-comps-2.5-src/contrib/
H A DMirror_Curved_Bispectral.comp147 double old_x = x, old_y = y, old_z = z, old_t=t, old_vx=vx, old_vz=vz, old_vy=vy;
475 vx=old_vx*(cos_theta_m*cos_theta_m-sin_theta_m*sin_theta_m)+old_vz*(2*cos_theta_m*sin_theta_m);
476 vz=old_vx*(2*cos_theta_m*sin_theta_m)+old_vz*(sin_theta_m*sin_theta_m-cos_theta_m*cos_theta_m);
478 …ta_m=%f, cos_theta_m=%f, v_n=%f, old_vx=%f, vx=%f, old_vz=%f, vz=%f\n\n", theta_m, sin_theta_m, co…
483 //printf("In mirror: old_vx=%f,old_vy=%f,old_vz=%f,vx=%f,vy=%f,vz=%f,v_n=%f\n",old_vx,old_vy,old_vz…
595 vx=old_vx*(cos_theta_m*cos_theta_m-sin_theta_m*sin_theta_m)+old_vz*(2*cos_theta_m*sin_theta_m);
596 vz=old_vx*(2*cos_theta_m*sin_theta_m)+old_vz*(sin_theta_m*sin_theta_m-cos_theta_m*cos_theta_m);
601 …ta_m=%f, cos_theta_m=%f, v_n=%f, old_vx=%f, vx=%f, old_vz=%f, vz=%f\n\n", theta_m, sin_theta_m, co…
603 //printf("vxvx+vzvz=%f, oldvxoldvx+oldvzoldvz=%f", vx*vx+vz*vz, old_vx*old_vx+old_vz*old_vz);
607 //printf("old_vx=%f,old_vy=%f,old_vz=%f,vx=%f,vy=%f,vz=%f,v_n=%f\n",old_vx,old_vy,old_vz,vx,vy,vz,v…
H A DMirror_Elliptic_Bispectral.comp165 double old_x = x, old_y = y, old_z = z, old_t=t, old_vx=vx, old_vz=vz, old_vy=vy;
351 vx=old_vx*(zeta*zeta-xhi*xhi)+old_vz*(2*zeta*xhi);
352 vz=+old_vx*(2*zeta*xhi)+old_vz*(xhi*xhi-zeta*zeta);
399 vx=old_vx*(zeta*zeta-xhi*xhi)-old_vz*(2*zeta*xhi);
400 vz=-old_vx*(2*zeta*xhi)+old_vz*(xhi*xhi-zeta*zeta);
/dports/games/abuse_sdl/abuse-0.8/src/
H A Dobjects.cpp948 int32_t old_vy=yvel(),old_vx=xvel(); // save the correct veloicties in tick() local
950 if (old_vx || old_vy) in tick()
964 if (xv!=old_vx || yv!=old_vy) // he collided with something in tick()
979 set_xvel(old_vx); in tick()
1010 int32_t testx=old_vx<0 ? -1 : 1,testy=0; // see if we were stopped left/right in tick()
1015 if (old_vx<0) in tick()
1025 } else if (old_vx<0) // we can skip left/right test because player wasn't moving up/down in tick()
1047 climb_xvel=old_vx-xvel(); in tick()
1070 if (old_vx<0) in tick()
1081 if (xvel()!=old_vx && state!=run_jump_fall && state!=end_run_jump) in tick()
/dports/games/lbreakout2/lbreakout2-2.6.5/game/
H A Dballs.h81 void ball_mask_vel(Ball *b, float old_vx, int entropy );
H A Dballs.c107 float old_vx; in ball_check_brick_reflection() local
149 old_vx = b->vel.x; in ball_check_brick_reflection()
164 ball_mask_vel( b, old_vx, BALL_ADD_ENTROPY ); in ball_check_brick_reflection()
166 ball_mask_vel( b, old_vx, BALL_NO_ENTROPY ); in ball_check_brick_reflection()
210 float old_vx = ball->vel.x; in ball_handle_paddle_contact() local
240 ball_mask_vel( ball, old_vx, BALL_NO_ENTROPY ); in ball_handle_paddle_contact()
577 float old_vx; in ball_reflect_at_side() local
651 old_vx = ball->vel.x; in ball_reflect_at_side()
654 ball_mask_vel( ball, old_vx, BALL_NO_ENTROPY ); in ball_reflect_at_side()
1181 void ball_mask_vel(Ball *b, float old_vx, int entropy ) in ball_mask_vel() argument
[all …]
/dports/games/xspringies/xspringies-1.12/
H A Dobj.h27 double old_x, old_y, old_vx, old_vy; member
H A Dphys.c511 m->vx = m->old_vx; in adaptive_runge_kutta()
555 m->old_vx = m->vx; in animate_obj()
596 if (m->old_vx == 0.0 && m->old_vy == 0.0) { in animate_obj()
/dports/games/lbreakout/lbreakout-010315/lbreakout/
H A Dbreakout.h229 void Ball_MaskV(Ball *b, float old_vx);
H A Dbreakout.cpp1435 float old_vx = b->v_x, d; in Club_HandleContact() local
1456 Ball_MaskV(b, old_vx); in Club_HandleContact()
1547 float old_vx = b->v_x; in Ball_CheckBrickReflection() local
1573 Ball_MaskV(b, old_vx); in Ball_CheckBrickReflection()
2188 void BreakOut::Ball_MaskV(Ball *b, float old_vx) in Ball_MaskV() argument
2194 if (old_vx < 0) in Ball_MaskV()