Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

How to ignore Gravity with Dynamic RigidBody? #293

Answered by jcornaz
TarekAS asked this question in Q&A
Discussion options

You must be logged in to vote

HI,

  • Setting density to 0.0 (causing expected crash on collision as it needs to be > 0)
  • Setting density to 0.0000000001 (changes nothing, worth a try)
  • Finding a way to set mass to 0

Like in the real world, gravitational acceleration is not impacted by the mass of the object. Therefore, changing the mass (or density) is not supposed to be of any help.

Finding a way to make KinematicPositionBased collide.

By design, kinematic bodies are not supposed to be affected by forces. The "impulse" generated by contact-resolution is one such force that is not supposed to affect kinematic bodies, by design.


As you said, Dynamic objects are supposed to be affected by forces, and gravity is one of…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@TarekAS
Comment options

@TarekAS
Comment options

Answer selected by TarekAS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #292 on July 17, 2022 19:15.