Questions tagged [ursina]

Ursina makes it easier to develop games, visualizations, and other kinds of software. The concise API combines with the power of the Python programming language.

Ursina makes it easier to develop games, visualizations, and other kinds of software. The concise API combines with the power of the programming language.

Links: Documentation

238 questions
0
votes
1 answer

How to add texture to mesh entity

I had created a simple entity with the mesh model, and i'd like to add texture on it. Here is the code: class Slide(Entity): def __init__(self, position = (0, 0, 0), rotation = (0, 0, 0)): super().__init__( model =…
nHyper
  • 53
  • 5
0
votes
1 answer

Cant load model for entity in program

I have an .obj file which the model i want to add, which is stored at: C:\Users\MTLS\source\python\Models_2-3D models\Triangular_Prism.obj But when i try to load the model into the entity using this code: spike_model =…
nHyper
  • 53
  • 5
0
votes
1 answer

How to fix "name 'render' is not defined" in Ursina Engine?

So I've just started with "Ursina" Engine, I'm still very new to it. I'm trying to make a Minecraft game on Youtube tutorial with this Engine. And for some reason, the program keeps giving me the error name "Name 'render' is not defined". And I…
Le Nguyen
  • 1
  • 2
0
votes
1 answer

How do you disable Ursina FirstPersonController?

I want to do a game with 3D sections and some with a static camera. I implemented the FirstPersonController and it is working fine but I cannot find any way to disable it (if on_disable() is supposed to do this I cannot make it work) Therefore, I…
Adaaam
  • 1
0
votes
1 answer

Ursina models scale

I'm building a game in ursina and for some Entity's I use my own texture images models-> I did try all models type offered by the framework (ex: quad,cube etc...)[for example my cat hero is taking damage from the red box even if its not actually…
0
votes
1 answer

Stop Ursina engine from calling update function

How can I make the Ursina engine stop calling update() function every frame after a certain condition while also running rest of the script The application.quit() terminates my script and app.destroy() just closes the window, while still calling…
Aarya
  • 1
0
votes
4 answers

How to install ursina?

I went to powershell and said pip install ursina, but the only thing that came up was pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was…
dimmy
  • 3
  • 2
0
votes
1 answer

ursina engine error but still running, why?

so this is the code: from ursina import * app = Ursina() player = Entity(model='cube', color=color.orange, scale_y=2) def update(): # update gets automatically called. player.x += held_keys['d'] * .1 player.x -= held_keys['a'] * .1 …
0
votes
1 answer

Animating rigged models in Ursina engine

I am aware that you can move and rotate objects around to 'animate' them but I have a different question: Is there a way to animate rigged models in Ursina? And if so, How? I have scoured the internet for answers to this question but I have not…
Spiceinajar
  • 101
  • 1
  • 10
0
votes
1 answer

TypeError: 'module' object is not callable perlin_noise error

I'm making game in python ursina perlin_noise and i got this error Code: noise = perlin_noise(octaves=1,seed=int(randrange(99,111))) imported things: from perlin_noise import perlin_noise
0
votes
1 answer

Animator in Ursina

I want to create a class that create an Entity when is called. In this class i have an update functioun where i traied to animate the entity, but the self.animate_position_x doesn't work and i get the error: "duration" is not defined.My code…
Serbannn
  • 1
  • 1
0
votes
1 answer

Python ursina : aim by changing FOV's value (issue with animation)

I'm making a FPS game in Ursina, and I'd like to be able to aim. I will do this, I think, by changing the camera's FOV : it is perfect ! The problem is that I'd like to be able to animate the transition of aiming. I cannot use a for loop, as the FOV…
Quantum Sushi
  • 504
  • 7
  • 23
0
votes
1 answer

how to make a delay ursina sounds

so i want to make a wait function without terminating the whole program in ursina for example from ursina import * from ursina.prefabs.first_person_controller import FirstPersonController from time import sleep app = Ursina() def input(keys): …
Bahjat
  • 25
  • 4
0
votes
1 answer

Is there a way to adjust the spawning position of the window panel in ursina on python?

Right now I already have the UI complete, but I cannot seem to figure out how to position it on the screen. I am fairly new to ursina, by the way. Here is sample code: app = Ursina() test = InputField(text='') UI = WindowPanel( title='Menu', …
0
votes
1 answer

How would I implement a timer that runs alongside my game in Ursina only when a certain key is pressed for a set time?

so I am laying the foundations for a small project within my computer science class and I am still relatively new to programming with python, and this is my first real project with Ursina 3D game engine for python. Anyway, I am remaking an aim…