Skip to content

How can I make projectile no mass? #265

Closed Answered by RossNordby
0x5143 asked this question in Q&A
Discussion options

You must be logged in to vote

Air resistance and gravity are typically defined by your IPoseIntegratorCallbacks. You could disable them for any body. See the PerBodyGravityDemo for an example of how to choose different gravity values during integration.

It sounds like you might want to just use a ray cast instead of a physical body, though. Even if you want it to take time to fly through the air, you could use one raycast per frame to approximate the line segment traversed by the bullet during that frame.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by 0x5143
Comment options

You must be logged in to vote
0 replies
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