Objective-CclassPhysicsKit
PKPhysicsWorld
@interface PKPhysicsWorld : NSObject <NSSecureCoding>
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- classNSObject
- protocolNSSecureCoding
Members 88
- method
+ (BOOL)supportsSecureCoding; - method
+ (id)world; - property
@property(class, readonly) BOOL supportsSecureCoding; - ivar
double _accumulatedDt;+0x20 - ivar
NSMutableArray *_bodies;+0x48 - ivar
struct PKContactListener { void * /* function pointer */ * _vptr$b2ContactListener; NSMutableDictionary * _contacts; id <PKPhysicsContactDelegate> _contactDelegate; } _contactListener;+0x28 - ivar
BOOL _doSleep;+0x18 - ivar
struct b2Vec2 { float x; float y; } _gravity;+0x10 - ivar
NSMutableArray *_joints;+0x50 - ivar
NSMutableArray *_postStepBlocks;+0x58 - ivar
float _speed;+0x40 - ivar
void *_world;+0x8 - ivar
struct PKDebugDrawPacket { struct vector<PKPoint, std::allocator<PKPoint>> { struct ? * __begin_; struct ? * __end_; struct { struct ? * __cap_; } ; } _linePoints; struct vector<PKDebugDrawPacket::color4, std::allocator<PKDebugDrawPacket::color4>> { struct ? * __begin_; struct ? * __end_; struct { struct ? * __cap_; } ; } _colors; } drawPacket;+0x60 - method
- (id).cxx_construct; - method
- (void).cxx_destruct; - method
- (void)__init__; - method
- (id)_bodies; - method
- (BOOL)_doSleep; - method
- (b2Vec2)_gravity; - method
- (void)_runBlockOutsideOfTimeStep:(id /* block */)arg0; - method
- (void *)_world; - method
- (void)addBody:(id)arg0; - method
- (void)addField:(id)arg0; - method
- (void)addJoint:(id)arg0; - method
- (void *)aether; - method
- (id)bodies; - method
- (id)bodyAlongRayStart:(CGPoint)arg0 end:(CGPoint)arg1; - method
- (id)bodyAtPoint:(CGPoint)arg0; - method
- (id)bodyInRect:(CGRect)arg0; - method
- (id)collisionDelegate; - method
- (id)contactDelegate; - method
- (id)copy; - method
- (id)copyWithZone:(struct _NSZone *)arg0; - method
- (void)dealloc; - method
- (void)debugDraw:(float)arg0 matrix:(_GLSKMatrix4)arg1 showsPhysics:(BOOL)arg2 showsOutlineInterior:(BOOL)arg3 showsFields:(BOOL)arg4; - method
- (const void *)debugDrawPacket; - method
- (void)encodeWithCoder:(id)arg0; - method
- (void)enumerateBodiesAlongRayStart:(CGPoint)arg0 end:(CGPoint)arg1 usingBlock:(id /* block */)arg2; - method
- (void)enumerateBodiesAtPoint:(CGPoint)arg0 usingBlock:(id /* block */)arg1; - method
- (void)enumerateBodiesInRect:(CGRect)arg0 usingBlock:(id /* block */)arg1; - method
- (CGVector)evalForce:(unsigned int)arg0 point:(CGPoint)arg1; - method
- (CGVector)gravity; - method
- (BOOL)hasBodies; - method
- (BOOL)hasFields; - method
- (id)init; - method
- (id)initWithCoder:(id)arg0; - method
- (BOOL)isEqualToWorld:(id)arg0; - method
- (BOOL)isSettling; - method
- (id)joints; - method
- (void)removeAllBodies; - method
- (void)removeAllFields; - method
- (void)removeAllJoints; - method
- (void)removeBody:(id)arg0; - method
- (void)removeField:(id)arg0; - method
- (void)removeJoint:(id)arg0; - method
- (CGVector)sampleFields:(CGPoint)arg0; - method
- (id)sampleFields:(CGRect)arg0 categories:(unsigned int)arg1 dataSize:(CGSize)arg2; - method
- (unknown); - method
- (void)setCollisionDelegate:(id)arg0; - method
- (void)setContactDelegate:(id)arg0; - method
- (void)setGravity:(CGVector)arg0; - method
- (void)setSettlingAngularVelocityThreshold:(double)arg0; - method
- (void)setSettlingDuration:(double)arg0; - method
- (void)setSettlingLinearVelocityThreshold:(double)arg0; - method
- (void)setSpeed:(double)arg0; - method
- (void)setVelocityThreshold:(double)arg0; - method
- (void)set_bodies:(id)arg0; - method
- (void)set_doSleep:(BOOL)arg0; - method
- (void)set_gravity:(b2Vec2)arg0; - method
- (double)settlingAngularVelocityThreshold; - method
- (double)settlingDuration; - method
- (double)settlingLinearVelocityThreshold; - method
- (double)speed; - method
- (BOOL)stepWithTime:(double)arg0 velocityIterations:(unsigned long long)arg1 positionIterations:(unsigned long long)arg2; - method
- (double)velocityThreshold; - property
@property(retain, nonatomic) NSMutableArray *_bodies; - property
@property(nonatomic) BOOL _doSleep; - property
@property(nonatomic) b2Vec2 _gravity; - property
@property(readonly, nonatomic) void *_world; - property
@property(readonly, nonatomic) void *aether; - property
@property(nonatomic) id <PKPhysicsContactDelegate> contactDelegate; - property
@property(nonatomic) CGVector gravity; - property
@property(getter=isSettling, readonly, nonatomic) BOOL settling; - property
@property(nonatomic) double settlingAngularVelocityThreshold; - property
@property(nonatomic) double settlingDuration; - property
@property(nonatomic) double settlingLinearVelocityThreshold; - property
@property(nonatomic) double speed; - property
@property(nonatomic) double velocityThreshold;
Header
@interface PKPhysicsWorld : NSObject <NSSecureCoding> { void *_world; struct b2Vec2 _gravity; BOOL _doSleep; double _accumulatedDt; struct PKContactListener _contactListener; float _speed; NSMutableArray *_bodies; NSMutableArray *_joints; NSMutableArray *_postStepBlocks; struct PKDebugDrawPacket drawPacket; } @property (class, readonly) BOOL supportsSecureCoding; @property (nonatomic) BOOL _doSleep; @property (nonatomic, strong) NSMutableArray *_bodies; @property (nonatomic, readonly) void *aether; @property (nonatomic, readonly) void *_world; @property (nonatomic) struct b2Vec2 _gravity; @property (nonatomic) struct CGVector gravity; @property (nonatomic) double speed; @property (nonatomic) double velocityThreshold; @property (nonatomic, getter=isSettling, readonly) BOOL settling; @property (nonatomic) double settlingLinearVelocityThreshold; @property (nonatomic) double settlingAngularVelocityThreshold; @property (nonatomic) double settlingDuration; @property (nonatomic) id<PKPhysicsContactDelegate> contactDelegate; + (BOOL)supportsSecureCoding; + (id)world; - (id)copyWithZone:(struct _NSZone *)zone; - (struct CGVector)gravity; - (id)copy; - (void).cxx_destruct; - (void)setSpeed:(double)speed; - (void)dealloc; - (void)setGravity:(struct CGVector)gravity; - (void)setContactDelegate:(id)contactDelegate; - (void)addField:(id)addField; - (id)init; - (double)settlingDuration; - (double)speed; - (void *)_world; - (id)contactDelegate; - (void)encodeWithCoder:(id)coder; - (id).cxx_construct; - (id)initWithCoder:(id)coder; - (const void *)debugDrawPacket; - (void)debugDraw:(float)debugDraw matrix:(union _GLSKMatrix4)matrix showsPhysics:(BOOL)showsPhysics showsOutlineInterior:(BOOL)showsOutlineInterior showsFields:(BOOL)showsFields; - (double)settlingLinearVelocityThreshold; - (void)_runBlockOutsideOfTimeStep:(id /* block */)timeStep; - (void)addBody:(id)addBody; - (void)addJoint:(id)addJoint; - (id)collisionDelegate; - (void)enumerateBodiesInRect:(struct CGRect)rect usingBlock:(id /* block */)usingBlock; - (BOOL)isSettling; - (void)removeBody:(id)removeBody; - (void)removeField:(id)removeField; - (void)removeJoint:(id)removeJoint; - (void)setCollisionDelegate:(id)collisionDelegate; - (void)setSettlingAngularVelocityThreshold:(double)settlingAngularVelocityThreshold; - (void)setSettlingDuration:(double)settlingDuration; - (void)setSettlingLinearVelocityThreshold:(double)settlingLinearVelocityThreshold; - (double)settlingAngularVelocityThreshold; - (BOOL)stepWithTime:(double)time velocityIterations:(unsigned long long)velocityIterations positionIterations:(unsigned long long)positionIterations; - (id)joints; - (struct b2Vec2)_gravity; - (void)removeAllBodies; - (Unknown)sampleFieldsAt:(Unknown)sampleFieldsAt; - (void)removeAllJoints; - (void *)aether; - (id)bodies; - (id)bodyAlongRayStart:(struct CGPoint)rayStart end:(struct CGPoint)end; - (id)bodyAtPoint:(struct CGPoint)point; - (id)bodyInRect:(struct CGRect)rect; - (void)enumerateBodiesAlongRayStart:(struct CGPoint)rayStart end:(struct CGPoint)end usingBlock:(id /* block */)usingBlock; - (void)enumerateBodiesAtPoint:(struct CGPoint)point usingBlock:(id /* block */)usingBlock; - (BOOL)hasBodies; - (BOOL)hasFields; - (struct CGVector)sampleFields:(struct CGPoint)sampleFields; - (void)setVelocityThreshold:(double)velocityThreshold; - (id)_bodies; - (BOOL)isEqualToWorld:(id)world; - (void)removeAllFields; - (void)__init__; - (BOOL)_doSleep; - (struct CGVector)evalForce:(unsigned int)evalForce point:(struct CGPoint)point; - (id)sampleFields:(struct CGRect)sampleFields categories:(unsigned int)categories dataSize:(struct CGSize)dataSize; - (void)set_bodies:(id)set_bodies; - (void)set_doSleep:(BOOL)set_doSleep; - (void)set_gravity:(struct b2Vec2)set_gravity; - (double)velocityThreshold; @end