Questions tagged [momentum]
80 questions
0
votes
2 answers
How to stop seek (steering behaviour) orbiting target in Box2D?
Ok so I currently have a very simple steering behaviour on my game. One object chases another. The problem is that the chasing object ends up orbiting the other object indefinitely. Is there any way of solving this in box2d? Right now all I've got…

Jack Jacques
- 23
- 4
0
votes
1 answer
jquery apply momentum of inertia on drag
I write a little script to drag a div container. It will works for touch and mouse events.
I have some difficulties to write the momentum script in order to have my container moving after touchend.
I know how to calculate a momentum but I don't know…

lolo
- 237
- 4
- 17
0
votes
1 answer
Problems with Inertina when add force in 2d physic
I try to make a very simple 2d physic functions to solve rigidBody with with sphere particles as colliders,
I have so a rigidBody and particle class :
function _rigidBody () {
this._position = cc.p(0.0, 0.0);
this._angle = 0;
…

user1482649
- 45
- 1
- 7
0
votes
1 answer
Rotating wheel with touch adding velocity
I have a wheel control in a game which is setup like so:
- (void)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch = [touches anyObject];
CGPoint location = [touch locationInView:[touch view]];
location =…

dev6546
- 1,412
- 7
- 21
- 40
-1
votes
1 answer
I tried creating lag variable for a momentum plan but not sure how to proceed
this is how I sorted for lag variables data
tsset permno date, monthly
sort permno date
by permno: gen lagret1=ret[_n-1]
by permno: gen lagret2=ret[_n-2]
by permno: gen lagret3=ret[_n-3]
by permno: gen lagret4=ret[_n-4]
by permno: gen…