CollisionObject

class CollisionObject : NSObject

Object describing detected collision with a specified WorldObject.

  • Reference to a world object contained in WorldDescription

    Declaration

    Swift

    var object: MBVWorldObject { get }
  • Last detection associated with the object

    Declaration

    Swift

    var lastDetection: MBVDetection { get }
  • Last frame where the object was seen

    Declaration

    Swift

    var lastFrame: MBVFrame { get }
  • Predicted time before impact with the object expressed in seconds

    Declaration

    Swift

    var timeToImpact: Float { get }
  • Danger level of collision

    Declaration

    Swift

    var dangerLevel: CollisionDangerLevel { get }