- Home /
Question by
WhereAreWe · Mar 21, 2017 at 03:23 AM ·
2d-platformerphysics2d
Fix an object at a point and rotate around it with physics
Hello, I'm working on a 2D Sidescroller type game and I have a platform that I want to be fixed at a point, and then able to rotate around that point when affected by physics (i.e. gravity, player collision, etc.). I'm not sure how to accomplish this. Maybe an image will help you understand what I mean. Image
Comment
Answer by MelvMay · Mar 21, 2017 at 07:54 AM
Just use a HingeJoint2D with the anchors set to the pivot point.
Your answer
Follow this Question
Related Questions
2D Ragdoll running game (Ragdoll Runners esk) 0 Answers
2D Wheel-like ball rolling 0 Answers
Player 2D getting stuck while moving 2 Answers
How to have the character fall when disabling collisions with layer its currently on? 1 Answer
Camera following Rigidbody jitter every few seconds with background 0 Answers