public static PickShapesGlobal ( System.Vector2 worldCoord ) : List |
||
worldCoord | System.Vector2 | |
return | 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));
}
RigidBody::PickShapesGlobal ( System.Vector2 worldCoord, System.Vector2 size ) : List |