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

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

Performs a global physical picking operation and returns the shapes that intersect the specified world coordinate.
public static PickShapesGlobal ( System.Vector2 worldCoord ) : List
worldCoord System.Vector2
Результат List
        public static List<ShapeInfo> PickShapesGlobal(Vector2 worldCoord)
        {
            Vector2 fsWorldCoord = PhysicsConvert.ToPhysicalUnit(worldCoord);
            List<Fixture> fixtureList = Scene.PhysicsWorld.TestPointAll(fsWorldCoord);
            return new List<ShapeInfo>(fixtureList.Where(f => f != null && f.UserData is ShapeInfo).Select(f => f.UserData as ShapeInfo));
        }

Same methods

RigidBody::PickShapesGlobal ( System.Vector2 worldCoord, System.Vector2 size ) : List