Inherits from KKBehavior : NSObject
Declared in KKLimitVelocityBehavior.h

Overview

Sets upper and lower limits of a physics body’s velocities.

Properties

angularVelocityLimit

The physics body’s maximum angular velocity (rotation speed).

@property (atomic) CGFloat angularVelocityLimit

Declared In

KKLimitVelocityBehavior.h

velocityLimit

The physics body’s maximum linear velocity (movement speed).

@property (atomic) CGFloat velocityLimit

Declared In

KKLimitVelocityBehavior.h

Class Methods

limitAngularVelocity:

The physics body’s maximum angular velocity.

+ (id)limitAngularVelocity:(CGFloat)angularVelocityLimit

Parameters

angularVelocityLimit

The physics body’s maximum angular velocity.

Return Value

A new instance.

Declared In

KKLimitVelocityBehavior.h

limitVelocity:

The physics body’s maximum velocity.

+ (id)limitVelocity:(CGFloat)velocityLimit

Parameters

velocityLimit

The physics body’s maximum velocity.

Return Value

A new instance.

Declared In

KKLimitVelocityBehavior.h

limitVelocity:limitAngularVelocity:

The physics body’s maximum velocity.

+ (id)limitVelocity:(CGFloat)velocityLimit limitAngularVelocity:(CGFloat)angularVelocityLimit

Parameters

velocityLimit

The physics body’s maximum velocity.

angularVelocityLimit

The physics body’s maximum angular velocity.

Return Value

A new instance.

Declared In

KKLimitVelocityBehavior.h