OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:newVelocity
(Results
1 - 3
of
3
) sorted by null
/external/replicaisland/src/com/replica/replicaisland/
Interpolator.java
75
float
newVelocity
= oldVelocity + (directionalAcceleration * secondsDelta);
79
if (passedTarget(oldVelocity,
newVelocity
, mTarget)) {
80
newVelocity
= mTarget;
83
mCurrent =
newVelocity
;
92
private boolean passedTarget(float oldVelocity, float
newVelocity
, float targetVelocity) {
95
if (oldVelocity < targetVelocity &&
newVelocity
> targetVelocity) {
97
} else if (oldVelocity > targetVelocity &&
newVelocity
< targetVelocity) {
PhysicsComponent.java
75
Vector2
newVelocity
= vectorPool.allocate(currentVelocity);
76
newVelocity
.add(impulseVector);
78
if (
newVelocity
.length2() < inertiaSquared) {
86
if (touchingFloor && currentVelocity.y <= 0.0f && Math.abs(
newVelocity
.x) > 0.0f
101
if (maxFriction > Math.abs(
newVelocity
.x)) {
102
newVelocity
.x = (0.0f);
104
newVelocity
.x = (
newVelocity
.x
105
- (maxFriction * Utils.sign(
newVelocity
.x)));
109
if (Math.abs(
newVelocity
.x) < 0.01f)
[
all
...]
HitReactionComponent.java
179
Vector2
newVelocity
= pool.allocate(parent.getPosition());
180
newVelocity
.subtract(attacker.getPosition());
181
newVelocity
.set(0.5f * Utils.sign(
newVelocity
.x),
182
0.5f * Utils.sign(
newVelocity
.y));
183
newVelocity
.multiply(mBounceMagnitude);
184
parent.setVelocity(
newVelocity
);
186
pool.release(
newVelocity
);
Completed in 31 milliseconds