简体   繁体   中英

Setting up a definite spawn point for FirstPersonController in Ursina

I have two questions.

  • I want to set my FirstPersonController() to spawn at a definite coordinate. How can I do that?
  • When I run a Ursina code with FirstPersonController() , it seems to be locked in a position or falling into void, but I had set up a floor of cube. How can I fix it?

The FirstPersonController can be given a position:

player = FirstPersonController(position=(10, 0, 10))

If you can't move around you may be stuck inside a block. Try using space to jump out. In case you're falling through the ground you may have forgotten to set a collider on it. Please show your relevant code.

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