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
0 answers

No Python at "\python\python.exe" error. Ursina project

I compiled my ursina project to bat using documentation https://www.ursinaengine.org/building.html. After command python -m ursina.build Folder "build" was created enter image description here When i clicked on the bat-file i got an error in…
VeryWell
  • 1
  • 1
0
votes
1 answer

How to install ursina on pydroid?

Hello I am trying to make minecraft using ursina on Android And once I tried to install ursina this error happend To fix this you could try to: 1. loosen the range of package versions you've specified 2. remove package versions to allow pip attempt…
user20545517
0
votes
0 answers

Ursina box collider doesn't recognize intersection with raycast

I have set a raycast that goes between 2 points. When they go through "N" boxes (called "scintillators" in the code) between those 2 points, the hit_info only returns 1 (hit) point - 3D Vec instead of "N" 3D hit points. I tried to cycle through the…
0
votes
0 answers

How can I get 3d model soldiers to move within Ursina?

The following code creates a 3d world that allows the user to navigate with two weapons. Ten soldiers spawn within the world and everytime the user kills one, they respawn in a random position. My goal is to get the soldiers to be constantly moving…
0
votes
1 answer

How do I get the return value from a function?

How is it possible to get a return value from a function in a button? What I would like to do is: from ursina import * app = Ursina() def on_click(): #Some code return #Some value b = Button(on_click = on_click) def input(key): if…
0
votes
1 answer

Ursina engine misses collisions

I have the following code, which checks essentially when a line collides with a cube. For some reason, not all collisions are detected. I created a short example with some lines with the following color coding: if no hit: cyan 1 hit: brown 2: red 3:…
0
votes
1 answer

ursina.Ursina is not defined

Ursina is successfully imported, but ursina.Ursina from ursina import * app = Ursina() Running this code results in the following error: NameError: name 'Ursina' is not defined I wondered what is defined and tried print(dir(ursina)). The output…
LercDsgn
  • 131
  • 12
0
votes
1 answer

Ursina Co-ordinate system - not working with large x,y,x values

I am trying to give position as (-11176.87,87646,987654) this is not shown in the ursina UI. I am working on realtime orbit simulation. How to customize the Ursina UI with any coordinate values?
0
votes
0 answers

Ursina app halts when using Ursinanetworking

Below is the screenshot of the server and the client outputs. Here I've only used ursinanetworking, without running the ursina app for both of them. Server And Client Prompt Windows The above image shows that ursinanetworking is functioning properly…
0
votes
0 answers

How to apply animation in operation on the ursina engine Python?

I'm tweaking this code for myself. At the very beginning, I want to pass an array to parse the cube ['LEFT', 'RIGHT', 'TOP'] I want to get the result of the parsing animation on this array at the very beginning of the launch. But I can't. If i do…
0
votes
1 answer

How to hide entity object in ursina engine python 3.8

I want to create a flashlight, when you press 1 beam appears, but I want it to disappear after a second. I made it, but my code doesn't work. My code: from ursina import * app = Ursina() def flashlight(): # flashlight code f =…
robot228
  • 3
  • 1
0
votes
0 answers

Python Ursina how to get bullet origin where I want it

I am trying to get a bullet to originate from the tip of my gun barrel. I cannot figure it out. I've been net searching and trial and erroring for 12 hours and can't get it. The bullet needs to move with the player and originate from the gun tip.…
malonn
  • 59
  • 1
  • 7
0
votes
1 answer

Ursina problem with the priority of Entity

i have a problem with entity priorities. I created two 2D 'quad' entities with different colors, but when they appear on the screen sometimes the color of one prevails and other times that of the other. from ursina import * app = Ursina() o =…
0
votes
0 answers

Running the update function from another function in Ursina engine

This is my first question on stack overflow, so kindly forgive me for any mistakes i might've made. I am working on a project which uses both mediapipe as well as Ursina (to make a motion-capture game in python). I tried to use both the libraries…
0
votes
1 answer

How do I make an object move in the direction that it's facing in ursina?

I want to be able to make an object move forward in ursina, but can't figure out how. I tried the .forward method but that only gives the direction and I don't know where to go from there.