Timeline for JBox2D applyLinearImpulse doesn't work
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 7, 2012 at 20:25 | vote | accept | Romeo | ||
Apr 7, 2012 at 13:39 | comment | added | Romeo | let us continue this discussion in chat | |
Apr 6, 2012 at 22:45 | comment | added | Romeo | Nope. If i modify delta the game is running faster but still the same results. | |
Apr 6, 2012 at 22:27 | comment | added | Martijn Courteaux | So, is it working right now? | |
Apr 6, 2012 at 22:25 | history | edited | Martijn Courteaux | CC BY-SA 3.0 |
added 4 characters in body
|
Apr 6, 2012 at 22:20 | comment | added | Romeo |
I got this running, but the thing is i need big values for the parameters. For a body with the density = 0.1f i need a 3k force to move it. It may be the delta wrong.
|
|
Apr 6, 2012 at 22:18 | comment | added | Martijn Courteaux | Are you sure that your delta value is correct? Delta should be 1/fps. So for 60 fps, your delta should be: 0.0167 | |
Apr 6, 2012 at 22:16 | history | edited | Martijn Courteaux | CC BY-SA 3.0 |
deleted 1 characters in body
|
Apr 6, 2012 at 22:11 | comment | added | Romeo | It must be something i did wrong because when i change my code with yours my body will not move left / right anymore. :D I think forces and impulses don't work. | |
Apr 6, 2012 at 22:00 | comment | added | Martijn Courteaux | @ClassicThunder: tinyurl.com/7fwfn53 :D I think it's a bad idea. Isn't the rule to only set velocity when using kinematic bodies? | |
Apr 6, 2012 at 21:58 | comment | added | ClassicThunder | Setting the velocity is fine for doing things such enforcing a max velocity. | |
Apr 6, 2012 at 21:53 | history | answered | Martijn Courteaux | CC BY-SA 3.0 |