LHRopeJointNode Reference

Inherits from
Conforms to
LHRopeJointNode.h

Overview

LHRopeJointNode class is used to load a LevelHelper rope joint. The equivalent in SpriteKit is a SKPhysicsJointLimit joint object, which is a wrapper over Box2d b2RopeJoint.

Instance Methods

canBeCut

- (BOOL)canBeCut
Discussion

Returns whether or not this rope joint can be cut.

Declared In
LHRopeJointNode.h

cutWithLineFromPointA:toPointB:

- (void)cutWithLineFromPointA:(CGPoint)ptA toPointB:(CGPoint)ptB
Parameters
ptA

The start point of the line used to cut the rope. In scene coordinates.

ptB

The end point of the line used to cut the rope. In scene coordinates.

Discussion

If the line described by ptA and ptB intersects with the rope joint, the rope will be cut in two. This method ignores "canBeCut".

Declared In
LHRopeJointNode.h
Last updated: 2015-2-12

Back to top

Copyright © VLADU BOGDAN DANIEL PFA.