Duality.Components.Physics.RigidBody.PickShapeGlobal C# (CSharp) Метод

PickShapeGlobal() публичный статический Метод

Performs a global physical picking operation and returns the shape in which the specified world coordinate is located in.
public static PickShapeGlobal ( System.Vector2 worldCoord ) : Duality.Components.Physics.ShapeInfo
worldCoord System.Vector2
Результат Duality.Components.Physics.ShapeInfo
        public static ShapeInfo PickShapeGlobal(Vector2 worldCoord)
        {
            Vector2 fsWorldCoord = PhysicsConvert.ToPhysicalUnit(worldCoord);
            Fixture f = Scene.PhysicsWorld.TestPoint(fsWorldCoord);

            return f != null && f.UserData is ShapeInfo ? (f.UserData as ShapeInfo) : null;
        }