RRMeshCollider

Objective-C

@interface RRMeshCollider : RRCollider

Swift

class RRMeshCollider : RRCollider

This collider detects hits based on a RRMesh3D. Try to use meshes for this collider that are as complex as needed but as simple as possible to avoid bad runtime performance.

  • Initializer based on a RRMesh3D instance

    Declaration

    Objective-C

    - (nonnull instancetype)initWithMesh3D:(nonnull RRMesh3D *)mesh3D;

    Swift

    init(mesh3D: RRMesh3D)

    Parameters

    mesh3D

    The mesh that should be used for hit testing. Please make sure to use as simple meshes as possible for runtime performance reasons.