unicornlox I am looking for a way to interact with the torus mesh in godot version 4.1 through the mouse.I thought with area3d or a different method but there is no torus shape as collisionshape.what can I do?
DaveTheCoder Is the torus moving or stationary? Do you need to detect collisions from inside the torus (inside the inner circumference)?
unicornlox DaveTheCoder I want to interact only from the surface of the torus, not from the inside, you know there is a circle for rotate on the editor, I want to get a round like that and interact.
award You could try colliding against something that isn't a torus, like a cylinder, and then check if the point is within the volume defined by the torus. https://math.stackexchange.com/questions/4380905/how-can-i-determine-if-a-point-x-y-z-is-within-a-torus-r-r Edit: Actually here's a better one on the intersection of a ray and a torus: http://cosinekitty.com/raytrace/chapter13_torus.html Edit2: An easier but highly inefficient way: CSGTorus3D can be set to receive collisions
xyz unicornlox Well then your question is misleading as you don't actually want a torus collider as you originally stated. What exactly are you trying to accmplish?
unicornlox xyz thanks mateπ) first I created convex collision as a mesh, automatically, then I added it as a child of area, it worked.