Good afternoon, I’m working on a personal project to create an RPG Tabletop, similar to the system used by Tabletop Simulator. I’m currently facing an issue with the collision of my tokens.
I want the tokens to move according to Terrain Collision and automatically adjust when passing through gaps or small-to-large elevations. However, in my tests, the Objects (tokens) either fall off the collision platform or pass through it when moving uphill.
The system I’m using relies on a Raycast to move and drag the Objects with the mouse. Is there any Rigidbody configuration or a way to adapt my script to prevent them from going through the ground or failing to move properly over elevated/sloped surfaces?
The code is an adaptation of the DragObject/GrabObject idea, but designed so that the Token does not tip over or fall.