RRCollider

Objective-C

@interface RRCollider : NSObject

Swift

class RRCollider : NSObject

The abstract base class for colliders used in the RRGLRenderView to perform hit testing. Colliders can be attached to RRRenderable instances.

  • Since this class is just a wrapper for the internal implementation, always use the isEqual method to campare RRCollider instances instead of just comparing their pointer addresses!

    Declaration

    Objective-C

    - (BOOL)isEqualToCollider:(RRCollider *_Nonnull)object;

    Swift

    func isEqual(to object: RRCollider) -> Bool