Sphere movement with attached cube
I'm trying to move a sort of bike using sphere physics. The sphere has a Collider and a RigidBody. To move the object (the 'bike'), I apply a force to the sphere (based on the input) and as it moves i reposition the bike on every frame at the position of the sphere.
The problem is that the collisions with walls is detected only by the sphere. The bike goes into the walls even if it has a Rigidbody or a fixed joint to the sphere.
I followed the tutorial from Mix And Jam about Mario Kart Drifting (https://www.youtube.com/watch?v=Ki-tWT50cEQ) to make the movement. Although in this tutorial is okay to use the sphere collision for all the object, I would like to limit the movement based on other colliders as well, but keeping the movement based on the sphere physics.
Does enyone have a solution?
Your answer
Follow this Question
Related Questions
How to fix this problem? 1 Answer
GameObjects pass through each other when they are connected with configurable joint 1 Answer
Objects slowly move by their own? 1 Answer
rb. MovePosition slowly enters another Collider 0 Answers
Placing objects with rigidbody settings inside another rigidbody object 1 Answer