New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Turn off gravity for rigid body #25
Comments
The class FirstScene(SpaceScene):
GRAVITY = (0, 0)
def construct(self):
c1 = Circle(color="red").shift(2 * LEFT)
c2 = Circle(color="blue").shift(RIGHT)
self.make_rigid_body(c1, c2)
c1.body.velocity = (1, 0)
self.wait(10) |
It does not help. When you run your code, you get this result |
Interesting, I can't reproduce this. Can you provide your manim version and OS information? Just for clarity: can you confirm you've done the following steps:
from manim import *
from manim_physics import *
class FirstScene(SpaceScene):
GRAVITY = (0, 0)
def construct(self):
c1 = Circle(color="red").shift(2 * LEFT)
c2 = Circle(color="blue").shift(RIGHT)
self.make_rigid_body(c1, c2)
c1.body.velocity = (1, 0)
self.wait(10)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to turn off gravity for one scene, but methods from pymunk docs does not works.
Firstly I tryied to change scene space gravity paramether in construct method:
But it doesn't help
Then i tried to override init method for Space scene class, but it did not bring any result
Full code:
The text was updated successfully, but these errors were encountered: