简体   繁体   中英

Create solid scenekit node that the camera can't go through it

I want to create a "solid" SCNNode, so when the camera touches the node, it will stop moving. I've tried physics but it didn't work. How can I do it?

This question does not help with the problem. I am going to assume you have a player object moving through a scene. If you want to disable the camera moving you have to set a condition for when the player collides with that solid object to stop the camera in update.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM