- Home /
DragRigidbody problem: Player moves with the object.
DragRigidbody script is really great except for one thing. When you are standing on an object you would like to move, the Player moves with it, like an platform. Then you can control this object up and down, and Walla! you have an airplane ... I don't want the player to move with the object, instead drop of the object when moved. How can I do this?
Here is an example on how it works by troll logic http://4.bp.blogspot.com/-G9K9VPG7TX4/TtD5W90B36I/AAAAAAAAAaM/V7l_63L3hnw/s1600/4wesomness_troll_logic+%25281%2529.jpg
Thanks!
Ok, I have tried that but the problem is then how to detect collision. CollisionEnter works but CollisionStay (detect that the player is on my cube) doesn't work. How do I detect if the player is standing on the cube? Thanks for your reply!
Answer by greencvbn · Dec 17, 2013 at 02:16 PM
Use a thin cube on top of the main cube then make the thin cube a trigger then your scripting can include OnTriggerEnter() (like a pressure plate)
Your answer
![](https://koobas.hobune.stream/wayback/20220613123948im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How do I get Player(CharacterController) not be affected by any objects? 0 Answers
Object goes trough everything (Teleporting?) 1 Answer
Identify player that is reconnecting 1 Answer
Why ? My character is fall to floor very slow 5 Answers
for fighting what is the script required for movement of the player.? 0 Answers