Hi I have some triangular shapes in my game that need a collisionBitMask to handle contact but I cant figure out how to model the physicsBody other than circleOfRadius or RectangleOfSize. How do I make a custom physics body so that the contacts are accurate. This is an issue for many different characters/obstacles in my game.
var randomNumber = arc4random() % 3
    var randomMountainImage:String!
    if randomNumber == 0 {
        randomMountainImage = "RedMountain.png"
    } else if randomNumber == 1 {
        randomMountainImage = "OrangeMountain.png"
    } else {
        randomMountainImage = "BeigeMountain.png"
    }
    var mountainTexture = SKTexture(imageNamed: randomMountainImage)
    var randomMountain = SKSpriteNode(texture: mountainTexture)
    var maxPositionOffset = min(100, movementAmount)
    randomMountain.position = CGPointMake( CGRectGetMidX(self.frame) + self.frame.width, 200 - gapHeight + CGFloat(movementAmount))
    randomMountain.zPosition = 8
//here is the problem
    randomMountain.physicsBody = SKPhysicsBody(rectangleOfSize: randomMountain.size)
    randomMountain.physicsBody?.dynamic = false
    self.addChild(randomMountain)