- Home /
How to make slider joint immovable by the player
I'm trying to make some dynamic levels(level changes or moves as you play) and i am trying to make the walls immovable at one point and after a trigger the walls moves with the slider joint to form stairs or other stuff. The problem is that when the wall is not supposed to move the player can push it around, i have setup a script that enables the motor part of the slider when a player enters the trigger and everything works fine except for the pushing of the walls. Anyone have any Ideas ?
Answer by FortisVenaliter · Feb 17, 2017 at 09:08 PM
Set the joint's rigidbody's isKinematic value to true. This will prevent it from being pushed by the physics system, but should allow it to still be used as a blocking wall.
Your answer
Follow this Question
Related Questions
Level design clone of King of Thieves 0 Answers
Softbody physics with 2D sprites 1 Answer
Jumping from special jump orb 1 Answer
Problem with Falling Platform Script 3 Answers