Quantcast
Channel: Latest Questions by orcinusdev
Viewing all articles
Browse latest Browse all 26

Move Rigidbody frictionless over ground

$
0
0
Hey! Im currently working on a simple maze game where a triangle is moving over a ground and colliding with stuff (camera from top). I came up to the conclusion that I want to use gravity on this triangle and not a kinematic rigidbody (as it was before). This because I want it to fall off the ground if it comes to near the edge of the ground plane. The problem is, however, that I want to move it frictionless so the object doesnt roll over when moving forward. I thought about using raycast, and just change the y position to something above ground. Is this the right way of doing it? If it is, does someone have an example, as I don't have worked with raycasting before. Best regards

Viewing all articles
Browse latest Browse all 26

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>