FInd normal tu curved surfaces

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By tem12qaz

How can I find normals to curved surfaces? For example, to a sphere, an ellipsoid?
Is there a universal way? thanks for the answer.

this is the way I have gotten a normal.

if $RayCast2D.is_colliding():
	$RayCast2D.get_collision_normal()

ArthurER | 2020-09-27 01:03

:bust_in_silhouette: Reply From: klaas

Hi,
For a smoothed vertex normal, add all adjacent face normals and normalize the vector.