question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

setLinearVelocity + gravity created weird additional velocity z

See original GitHub issue

I set body.setLinearVelocity(0.0, 0.0, 0.0); in notifyOnUpdate and object is still falling slowly due gravity.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
luboslencocommented, Dec 17, 2018

Use body.setLinearFactor(0,0,0) or body.disableGravity() to prevent gravity. (Armory usually maps 1:1 to Bullet with these calls.)

0reactions
trshcommented, Dec 18, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Physijs and setLinearVelocity: moving objects - Stack Overflow
Edit just tried using setLinearVelocity() it works with the updated code above.
Read more >
setLinearVelocity is not accurate - Questions - Babylon.js Forum
I'm using player.physicsImpostor.setLinearVelocity() to move the player in my scene, but it is not accurate. Sometimes it works correctly, ...
Read more >
Added velocity (bullet engine and JME3) - jMonkeyEngine Hub
Hello everyone, In my game, I move platforms. These platforms have a RigidBodyControl attached in Kinematic mode.
Read more >
Pawn falls too slow - World Creation - Unreal Engine Forums
Is there any way to increase the gravity just affecting the pawn. ... graph on event tick I set linear velocity (only in...
Read more >
Unreal Engine 4 Directional Gravity and Gravitation ... - YouTube
Walking through manually adding gravity in UE4 in any direction for an actor (first 10 minutes) as well as how to simulate gravity...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found