I'm using SceneKit to make a 3D game for iOS/iPadOS. I'm praying that Apple continues its support, otherwise I'm stuck dealing with making everything again from scratch with a commercial game engine.
Post
Replies
Boosts
Views
Activity
An SCNConstraint only limits the movement of an SCNNode. Once removed, it doesn't do anything to the existing position of an SCNNode. How about saving the original position of the camera in a variable and setting the camera's position back to the contents of that variable at the time you want to remove the constraints? The camera node's position when using simd computation is a simd_float3.
Such as:
let originalPosition = cameraNode.simdPosition;
Then later:
cameraNode.constraints?.removeAll();
cameraNode.simdPosition = originalPosition;
As of this post, the following controllers are currently supported:
Xbox Wireless Controller with Bluetooth (Model 1708)
Xbox Elite Wireless Controller Series 2
Xbox Adaptive Controller
PlayStation DualShock 4 Wireless Controller
Other MFi (Made for iOS) Bluetooth controllers might be supported
Microsoft and Apple are working together to bring compatibility for the Xbox Series X controller to customers in a future update.
https://support.apple.com/en-us/HT210414