Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

install first person controller python

from ursina import *
from ursina.prefabs.first_person_controller import FirstPersonController

class Voxel(Button):
    def __init__(self, position = (0,0,0)):
        super().__init__(
            parent = scene,
            position = position,
            medel = 'cube',
            origin_y = 0.5,
            texture = 'white_cube',
            color = color.white,
            highlight_color = color.lime)

app = Ursina()

for z in range(8):
    for x in range(8):
        voxel = Voxel(position = (x,0,z))
player = FirstPersonController()

app.run()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #install #person #controller #python
ADD COMMENT
Topic
Name
7+3 =