Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project 36 PhysicsBody: Could not create physics body on createPlayer() #50

Open
mirchaemanuel opened this issue Sep 8, 2020 · 0 comments

Comments

@mirchaemanuel
Copy link

iOS 13.7 (SE 2nd simulator)
Xcode Version 11.7 (11E801a)
Swift: Apple Swift version 5.2.4 (swiftlang-1103.0.32.9 clang-1103.0.32.53)

Console output:

2020-09-08 23:05:24.019709+0200 Project36[66680:2549632] Metal GPU Frame Capture Enabled
2020-09-08 23:05:24.020347+0200 Project36[66680:2549632] Metal API Validation Enabled
2020-09-08 23:05:24.153016+0200 Project36[66680:2549632] PhysicsBody: Could not create physics body.

error on unwrapping nil on line 86:

		player.physicsBody!.contactTestBitMask = player.physicsBody!.collisionBitMask

player.phisicsBody is nil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant