Skip to content
Advertisement

Ursina FirstPersonController Change Collider Not Working

My Issue

I am using the Panda3D wrapper for Python to run some 1st person game tests. I would like the collider of the ursina camera type called the FirstPersonController to extend its collider over the sprite. I have tried (without really knowing how as there aren’t many tutorials on Ursina) using a BoxCollider() but I didn’t really get how to do it. Can anyone help me?

My Code

JavaScript

Please help, all suggestions are helpful!

Advertisement

Answer

To show a 3rd person perspective, you can move the global camera back:

JavaScript

You could either do this once when loading the game or switch back and forth via keyboard inputs:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement