Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Moises Fuentes |
inside of this piece of code:
private void _on_Area2D_body_shape_entered(int body_id, object body, int body_shape, int area_shape)
{
if(body is Player){
//do something
}
}
how can I know the global position of the “body” since it is an “object” I cannot do this:
body.globalPosition;