Hey guys, it’s agKing here I have a question how to make an object fix on the ground the perfect moment it touches it like I want to anchor it but at the right moment I tried using RunService to have the specific delta time, asked GPT multiple times still no improvement so here’s the issue the distance the object float in the y-axis from the ground
You can try to raycast down so that it get the closest point to the ground.
If the object is a MeshPart or a Union, check to see if the CollisionFidelity option under Properties is set to PreciseConvexDecomposition or Hull. These options will essentially change the ‘hitbox’ from an encompassing box to the triangles composing the mesh. Then, as mentioned before:
To expand on this, you can create a grounded state (boolean variable) indicating whether the object is grounded or not. While the object is grounded, check to see if its velocity is below a given threshold (ex: velocity <= 0.1) and freeze it in place if it is. It’s preferable to check the velocity this way because while an object may seem stationary, its linear velocity will not be exactly zero.
Already better with raycast
CustomProperties Elastricity does the job perfectly man this is a thread that helped me
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.