/dports/games/battletanks/btanks-0.9.8083/objects/ |
H A D | missile.cpp | 87 _target = _velocity; in on_spawn() 97 _target = _velocity = pos + vel * est_t; in calculate() 99 _velocity = _target; in calculate() 120 _velocity.normalize(); in calculate() 125 _velocity = _velocity * r + lpos; in calculate() 126 _velocity.normalize(); in calculate() 132 _velocity += lpos * ts; in calculate() 135 if (!_velocity.is0()) in calculate() 147 _velocity = -_velocity; in emit() 165 int z = (_velocity.y > 0)? csdzo: 0; in emit() [all …]
|
H A D | bullet.cpp | 106 if (aa && _variants.has("auto-aim") && !_velocity.is0()) { in calculate() 124 v2<float> m = rel * _velocity; in calculate() 133 _vel_backup = _velocity; in calculate() 134 _velocity = get_relative_position(target); in calculate() 136 } else _velocity = _vel_backup; in calculate() 160 _vel_backup = _direction = _velocity; in on_spawn() 183 int z = (_velocity.y >= 0) ? edzo : 0; in emit() 217 _velocity.fromDirection(dir, dirs); in emit() 218 _direction = _velocity; in emit() 219 _vel_backup = _velocity; in emit() [all …]
|
H A D | raider_heli.cpp | 105 _velocity = v2<float>(4, 3); in calculate() 131 _velocity.normalize(); in calculate() 132 _velocity = _velocity * 2 + dir * 3; in calculate() 133 _velocity.normalize(); in calculate() 135 _velocity = _direction; in calculate() 143 if (!_velocity.is0()) { in calculate()
|
H A D | helicopter.cpp | 129 _velocity.clear(); in tick() 147 _velocity = _next_target - pos; in calculate() 149 …if (_velocity.is0() || (_velocity.x * _next_target_rel.x) < 0 || (_velocity.y * _next_target_rel.y… in calculate() 152 _velocity.clear(); in calculate() 154 } else _velocity.clear(); in calculate() 156 if (_velocity.is0()) { in calculate()
|
H A D | ai_heli.cpp | 98 _target_dir = get_target_position(_velocity, ai::Targets->troops, "helicopter-bullet"); in calculate() 108 if (_velocity.length() >= 25) { in calculate() 112 _velocity.clear(); in calculate() 124 _velocity.clear(); in calculate() 137 if (!_velocity.is0()) { in calculate()
|
H A D | ai_trooper.cpp | 88 ai::OldSchool::calculateV(_velocity, this); in onIdle() 109 ai::Herd::calculateV(_velocity, this, summoner, range); in onIdle() 111 _velocity.clear(); in onIdle() 143 _velocity.fromDirection(_target_dir, get_directions_number()); in calculate() 190 _target_dir = get_target_position(_velocity, in calculate() 207 if (_velocity.length() >= 9) { in calculate() 212 _velocity.clear(); in calculate() 220 _velocity.clear(); in calculate()
|
H A D | ballistic_missile.cpp | 30 _direction = _velocity = v2<float>(0, -1); in on_spawn() 46 _velocity = v2<float>(0, -1); in calculate() 56 _velocity = get_relative_position(target) + v2<float>(0, -512); in calculate() 66 _velocity = v2<float>(0, 1); in calculate() 149 _velocity = pos; in calculate()
|
/dports/games/battletanks/btanks-0.9.8083/engine/src/ |
H A D | credits.cpp | 119 _velocity.x = 2; in Credits() 120 _velocity.y = 3; in Credits() 121 _velocity.normalize(); in Credits() 125 _position += _velocity * dt * 150; in render() 130 _velocity.x = math::abs(_velocity.x); in render() 132 _velocity.x = - math::abs(_velocity.x); in render() 135 _velocity.y = math::abs(_velocity.y); in render() 137 _velocity.y = -math::abs(_velocity.y); in render()
|
H A D | object.cpp | 157 _velocity.normalize(); in quantize_velocity() 159 _velocity.quantize8(); in quantize_velocity() 254 _velocity.clear(); in tick() 735 _velocity.clear(); in set_way() 777 _velocity.clear(); in calculate_way_velocity() 792 _velocity.clear(); in calculate_way_velocity() 820 _velocity.x = 0; in calculate_way_velocity() 822 _velocity.y = 0; in calculate_way_velocity() 929 _velocity.clear(); in limit_rotation() 1071 _velocity.clear(); in calculate() [all …]
|
/dports/devel/simgear/simgear-2020.3.11/simgear/scene/util/ |
H A D | SGSceneUserData.hxx | 38 _bvhNode(rhs._bvhNode), _velocity(rhs._velocity), in SGSceneUserData() 72 { return _velocity; } in getVelocity() 74 { if (!_velocity) _velocity = new Velocity; return _velocity; } in getOrCreateVelocity() 76 { _velocity = velocity; } in setVelocity() 83 SGSharedPtr<Velocity> _velocity; member in SGSceneUserData
|
/dports/devel/godot-tools/godot-demo-projects-8d9d58f112d8/2d/platformer/src/Actors/ |
H A D | Enemy.gd | 21 _velocity.x = speed.x 41 _velocity.x = speed.x 43 _velocity.x = -speed.x 46 _velocity.x *= -1 48 # We only update the y value of _velocity as we want to handle the horizontal movement ourselves. 49 _velocity.y = move_and_slide(_velocity, FLOOR_NORMAL).y 52 sprite.scale.x = 1 if _velocity.x > 0 else -1 61 _velocity = Vector2.ZERO 67 animation_new = "walk" if abs(_velocity.x) > 0 else "idle"
|
H A D | Player.gd | 48 …var is_jump_interrupted = Input.is_action_just_released("jump" + action_suffix) and _velocity.y < … 49 _velocity = calculate_move_velocity(_velocity, direction, speed, is_jump_interrupted) 53 _velocity = move_and_slide_with_snap( 54 _velocity, snap_vector, FLOOR_NORMAL, not is_on_platform, 4, 0.9, false 106 animation_new = "run" if abs(_velocity.x) > 0.1 else "idle" 108 animation_new = "falling" if _velocity.y > 0 else "jumping"
|
/dports/emulators/xbraitenberg/xbraitenberg-0.9/ |
H A D | vehicle.cc | 17 _velocity(0, 0), _angular_velocity(0), _total_firing(0) in Vehicle() 32 _velocity(v._velocity), _angular_velocity(v._angular_velocity) in Vehicle() 73 _velocity = Point(0, 0); in reset() 190 if (!_velocity && force.magnitude() < _world->static_friction(this) * coeff) in move() 193 force -= _velocity.normal() * _world->dynamic_friction(this) * coeff; in move() 195 _position += _velocity * time; in move() 196 _velocity += force * time / _mass; in move() 237 Point rest_v1 = _velocity; in collide() 238 Point v2 = o->_velocity - rest_v1; in collide() 261 _velocity = new_v1 + rest_v1; in collide() [all …]
|
/dports/games/battletanks/btanks-0.9.8083/engine/ai/ |
H A D | trooper.cpp | 33 void StupidTrooper::calculate(Object *object, PlayerState &_state, v2<float> &_velocity, v2<float> … in calculate() argument 41 _target_dir = object->get_target_position(_velocity, _targets, range); in calculate() 51 if (_velocity.length() >= 9) { in calculate() 56 _velocity.clear(); in calculate() 64 _velocity.clear(); in calculate()
|
H A D | waypoints.cpp | 36 ai::OldSchool::calculateV(object->_velocity, object); in calculate() 57 object->_velocity.clear(); in calculate() 70 object->_velocity.clear(); in calculate() 76 object->_velocity.clear(); in calculate() 100 object->_velocity.clear(); in calculate() 109 } else object->_velocity.clear(); in calculate()
|
/dports/audio/ardour6/Ardour-6.8.0/libs/canvas/ |
H A D | note.cc | 40 , _velocity (0.0) in Note() 47 , _velocity (0.0) in Note() 55 _velocity = max (0.0, min (1.0, fract)); in set_velocity() 64 if (_show_velocity_bars && _velocity > 0.0) { in render() 82 self.x1 = self.x0 + (width * _velocity); in render()
|
/dports/devel/godot-tools/godot-demo-projects-8d9d58f112d8/2d/navigation_astar/ |
H A D | character.gd | 15 var _velocity = Vector2() 45 var steering = desired_velocity - _velocity 46 _velocity += steering / MASS 47 position += _velocity * get_process_delta_time() 48 rotation = _velocity.angle()
|
/dports/science/step/step-21.12.3/stepcore/ |
H A D | particle.h | 122 const Vector2d& velocity() const { return _velocity; } in velocity() 124 void setVelocity(const Vector2d& velocity) { _velocity = velocity; } in setVelocity() 143 Vector2d momentum() const { return _velocity * _mass; } in momentum() 145 void setMomentum(const Vector2d& momentum) { _velocity = momentum / _mass; } in setMomentum() 148 double kineticEnergy() const { return _mass * _velocity.squaredNorm()/2; } in kineticEnergy() 171 Vector2d _velocity; variable
|
/dports/graphics/osg34/OpenSceneGraph-OpenSceneGraph-3.4.1/src/osgGA/ |
H A D | FlightManipulator.cpp | 216 lv *= (_velocity*eventTimeDelta); in performMovement() 228 _velocity += eventTimeDelta * (_acceleration + _velocity); in performMovementLeftMouseButton() 235 _velocity = 0.0f; in performMovementMiddleMouseButton() 242 _velocity -= eventTimeDelta * (_acceleration + _velocity); in performMovementRightMouseButton()
|
H A D | FirstPersonManipulator.cpp | 35 _velocity( 0. ) in FirstPersonManipulator() 51 _velocity( fpm._velocity ), in FirstPersonManipulator() 144 _velocity = velocity; in setVelocity() 214 _velocity = 0.; in home() 221 _velocity = 0.; in home() 230 _velocity = 0.; in init()
|
/dports/graphics/osg/OpenSceneGraph-OpenSceneGraph-3.6.5/src/osgGA/ |
H A D | FlightManipulator.cpp | 217 lv *= (_velocity*eventTimeDelta); in performMovement() 229 _velocity += eventTimeDelta * (_acceleration + _velocity); in performMovementLeftMouseButton() 236 _velocity = 0.0f; in performMovementMiddleMouseButton() 243 _velocity -= eventTimeDelta * (_acceleration + _velocity); in performMovementRightMouseButton()
|
H A D | FirstPersonManipulator.cpp | 35 _velocity( 0. ) in FirstPersonManipulator() 52 _velocity( fpm._velocity ), in FirstPersonManipulator() 145 _velocity = velocity; in setVelocity() 215 _velocity = 0.; in home() 222 _velocity = 0.; in home() 231 _velocity = 0.; in init()
|
/dports/audio/polyphone/polyphone-75a5e88/sources/context/ |
H A D | noteevent.h | 35 _velocity(val) {} 44 return _velocity; 49 unsigned char _velocity;
|
/dports/graphics/osg34/OpenSceneGraph-OpenSceneGraph-3.4.1/examples/osghangglide/ |
H A D | GliderManipulator.cpp | 30 _velocity = 0.2f; in GliderManipulator() 78 _velocity = boundingSphere._radius*0.01f; in home() 97 _velocity = 0.2f; in init() 263 _velocity += dt*_modelScale*0.05f; in calcMovement() 270 _velocity = 0.0f; in calcMovement() 276 _velocity -= dt*_modelScale*0.05f; in calcMovement() 325 lv *= (_velocity*dt); in calcMovement()
|
/dports/graphics/osg/OpenSceneGraph-OpenSceneGraph-3.6.5/examples/osghangglide/ |
H A D | GliderManipulator.cpp | 30 _velocity = 0.2f; in GliderManipulator() 78 _velocity = boundingSphere._radius*0.01f; in home() 97 _velocity = 0.2f; in init() 263 _velocity += dt*_modelScale*0.05f; in calcMovement() 270 _velocity = 0.0f; in calcMovement() 276 _velocity -= dt*_modelScale*0.05f; in calcMovement() 325 lv *= (_velocity*dt); in calcMovement()
|