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!

disable the dragrigidbody script?

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!

1 Answer

1

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)

Thanks mate, that works!!