Objective-CclassPhysicsKit

@interface PKPhysicsWorld : NSObject <NSSecureCoding>

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 88

  1. method+ (BOOL)supportsSecureCoding;
  2. method+ (id)world;
  3. property@property(class, readonly) BOOL supportsSecureCoding;
  4. ivardouble _accumulatedDt;+0x20
  5. ivarNSMutableArray *_bodies;+0x48
  6. ivarstruct PKContactListener { void * /* function pointer */ * _vptr$b2ContactListener; NSMutableDictionary * _contacts; id <PKPhysicsContactDelegate> _contactDelegate; } _contactListener;+0x28
  7. ivarBOOL _doSleep;+0x18
  8. ivarstruct b2Vec2 { float x; float y; } _gravity;+0x10
  9. ivarNSMutableArray *_joints;+0x50
  10. ivarNSMutableArray *_postStepBlocks;+0x58
  11. ivarfloat _speed;+0x40
  12. ivarvoid *_world;+0x8
  13. ivarstruct 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
  14. method- (id).cxx_construct;
  15. method- (void).cxx_destruct;
  16. method- (void)__init__;
  17. method- (id)_bodies;
  18. method- (BOOL)_doSleep;
  19. method- (b2Vec2)_gravity;
  20. method- (void)_runBlockOutsideOfTimeStep:(id /* block */)arg0;
  21. method- (void *)_world;
  22. method- (void)addBody:(id)arg0;
  23. method- (void)addField:(id)arg0;
  24. method- (void)addJoint:(id)arg0;
  25. method- (void *)aether;
  26. method- (id)bodies;
  27. method- (id)bodyAlongRayStart:(CGPoint)arg0 end:(CGPoint)arg1;
  28. method- (id)bodyAtPoint:(CGPoint)arg0;
  29. method- (id)bodyInRect:(CGRect)arg0;
  30. method- (id)collisionDelegate;
  31. method- (id)contactDelegate;
  32. method- (id)copy;
  33. method- (id)copyWithZone:(struct _NSZone *)arg0;
  34. method- (void)dealloc;
  35. method- (void)debugDraw:(float)arg0 matrix:(_GLSKMatrix4)arg1 showsPhysics:(BOOL)arg2 showsOutlineInterior:(BOOL)arg3 showsFields:(BOOL)arg4;
  36. method- (const void *)debugDrawPacket;
  37. method- (void)encodeWithCoder:(id)arg0;
  38. method- (void)enumerateBodiesAlongRayStart:(CGPoint)arg0 end:(CGPoint)arg1 usingBlock:(id /* block */)arg2;
  39. method- (void)enumerateBodiesAtPoint:(CGPoint)arg0 usingBlock:(id /* block */)arg1;
  40. method- (void)enumerateBodiesInRect:(CGRect)arg0 usingBlock:(id /* block */)arg1;
  41. method- (CGVector)evalForce:(unsigned int)arg0 point:(CGPoint)arg1;
  42. method- (CGVector)gravity;
  43. method- (BOOL)hasBodies;
  44. method- (BOOL)hasFields;
  45. method- (id)init;
  46. method- (id)initWithCoder:(id)arg0;
  47. method- (BOOL)isEqualToWorld:(id)arg0;
  48. method- (BOOL)isSettling;
  49. method- (id)joints;
  50. method- (void)removeAllBodies;
  51. method- (void)removeAllFields;
  52. method- (void)removeAllJoints;
  53. method- (void)removeBody:(id)arg0;
  54. method- (void)removeField:(id)arg0;
  55. method- (void)removeJoint:(id)arg0;
  56. method- (CGVector)sampleFields:(CGPoint)arg0;
  57. method- (id)sampleFields:(CGRect)arg0 categories:(unsigned int)arg1 dataSize:(CGSize)arg2;
  58. method- (unknown);
  59. method- (void)setCollisionDelegate:(id)arg0;
  60. method- (void)setContactDelegate:(id)arg0;
  61. method- (void)setGravity:(CGVector)arg0;
  62. method- (void)setSettlingAngularVelocityThreshold:(double)arg0;
  63. method- (void)setSettlingDuration:(double)arg0;
  64. method- (void)setSettlingLinearVelocityThreshold:(double)arg0;
  65. method- (void)setSpeed:(double)arg0;
  66. method- (void)setVelocityThreshold:(double)arg0;
  67. method- (void)set_bodies:(id)arg0;
  68. method- (void)set_doSleep:(BOOL)arg0;
  69. method- (void)set_gravity:(b2Vec2)arg0;
  70. method- (double)settlingAngularVelocityThreshold;
  71. method- (double)settlingDuration;
  72. method- (double)settlingLinearVelocityThreshold;
  73. method- (double)speed;
  74. method- (BOOL)stepWithTime:(double)arg0 velocityIterations:(unsigned long long)arg1 positionIterations:(unsigned long long)arg2;
  75. method- (double)velocityThreshold;
  76. property@property(retain, nonatomic) NSMutableArray *_bodies;
  77. property@property(nonatomic) BOOL _doSleep;
  78. property@property(nonatomic) b2Vec2 _gravity;
  79. property@property(readonly, nonatomic) void *_world;
  80. property@property(readonly, nonatomic) void *aether;
  81. property@property(nonatomic) id <PKPhysicsContactDelegate> contactDelegate;
  82. property@property(nonatomic) CGVector gravity;
  83. property@property(getter=isSettling, readonly, nonatomic) BOOL settling;
  84. property@property(nonatomic) double settlingAngularVelocityThreshold;
  85. property@property(nonatomic) double settlingDuration;
  86. property@property(nonatomic) double settlingLinearVelocityThreshold;
  87. property@property(nonatomic) double speed;
  88. property@property(nonatomic) double velocityThreshold;
@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