All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

Rotate Object Smoothly When Dragging

I want to make a 3d object rotate smoothly when being dragged in a ui in Unity. My stuff currently works but I just can’t get it to rotate smoothly, I can only make it rotate instantly which looks bad....
Zagro's user avatar
  • 1
0 votes
0 answers
7 views

Can a C file compiled from CGo code, be imported into Cython? [closed]

Is it possible to 'include' a C file compiled from CGo (C+Golang) code, into Cython (C+Python) ? If not, is there any other way to access Golang API hosted on a server, from Python clients ?
Neel's user avatar
  • 229
0 votes
1 answer
31 views

How do games package their textures in relation to image compression?

I know that you have to keep in mind what platform you're targeting, but it feels like you might have to have multiple sets of textures. Like let's say you're targeting desktop. How do I know what ...
Zebrafish's user avatar
  • 189
0 votes
0 answers
9 views

How to adjust resolution to display only in portrait mode for both phone and tablet devices?

I am facing an issue where I'm able to adjust resolution for different phones like Android and iOS but not for tablet devices. Is there any way to set it, for all kinds of devices, to display only in ...
Mohammed Rilwan Ibrahim's user avatar
0 votes
0 answers
15 views

Rotating 2D sprite around tilted Y axis

I am building a sprite that I want to spin along an axis. I am using SpriteKit on iOS for this, but I'm sure that the question is not really tool specific. In my case, I have a sprite such as: and I ...
PKCLsoft's user avatar
  • 213
1 vote
0 answers
35 views

Calculation of far distance plane based on yaw and pitch for a map renderer

I'm working on a vector map renderer. I want to calculate the far plane for a protective transformation, based on the yaw, pitch, roll and height of the camera above the map. Yaw (looking to the left ...
maxammann's user avatar
  • 111
0 votes
0 answers
20 views

Change colors after drawing lines in Pangolin using OpenGL

I am drawing a bunch of lines using pangolin library. Each line has 4 vertex pairs. My goal is to give each line a different colour. Here is the code snippet I am using. In each render loop I do the ...
Nitron_707's user avatar
0 votes
0 answers
35 views

FixedUpdate in Unity

I am trying to test my project for different discretization levels of a game object. For this I use a metric to compare the dynamics of the object for different discretization (compare the positions). ...
the2second's user avatar
0 votes
0 answers
25 views

Enemy not responding to chained attack

I am working on a 2D mobile platformer where there will be different characters with unique skill sets. I am working on a character that should be able to perform chained attacks. I have a button in ...
shanksVR's user avatar
0 votes
0 answers
19 views

How to achieve a blend of Top Down 2D and Isometric maps/art like in Sea of Stars?

I recently started playing Sea of Stars and what amazed me was the seamless blend of Isometric and Top Down 2D. Sometimes even in the same map. It's what I have in mind for the game I'm currently ...
Pat's user avatar
  • 179
3 votes
1 answer
57 views

What does VSync mean on a variable refresh rate monitor?

A game which enables VSync means that the game frames get synchronized to the monitor's refresh rate (to avoid tearing). A variable refresh rate monitor means that the monitor refresh rate gets ...
Panda Pajama's user avatar
  • 13.4k
0 votes
0 answers
17 views

Move UI element by a specific amount relative to current screen resolution

I want to achieve the following: At some point in the game, the UI Image (dashed rectangle) should shift towards the right edge of the screen (black outline rectangle) up until the part of the image, ...
Russel Ledge's user avatar
0 votes
0 answers
17 views

Static Niagara System for fire on a torch

I'm building a Niagara System for fire and smoke that would be placed on a torch when it's lit. While smoke works just fine when it's static, when I move the camera (and so the torch itself moves too) ...
user3272018's user avatar
0 votes
0 answers
41 views

Raycast suspension simulation rebounds car on landing

I'm expecting the car to land and engage the suspension to dampen the landing. The code I'm using currently has this effect: ...
Lousifr Illuminos's user avatar
2 votes
0 answers
51 views

Explode image into component pixels shader

I'm currently stuck on trying to write a shader for Godot 4.x. and get it to look right. I'd like to take an image, pixelate a bit so that particles are a bit chunky, and then explode it into ...
Ghoul Fool's user avatar
0 votes
0 answers
31 views

Mobs in 3D tutorial "Squash the creeps" don't move

I'm following the tutorial Squash the Creeps using Godot 4.1.2 on Ubuntu 22.04. At some point, the mobs are instantiated but they are not moving. I'm sure the mob scene is called from the main scene ...
Free_ion's user avatar
0 votes
0 answers
36 views

Convert legacy OpenGL script to a newer one

I have a script drawing 3D chart, three axes and a surface. Unfortunately, it was implemented using old OpenGL approach with Begin and ...
Anonymous's user avatar
  • 109
0 votes
1 answer
44 views

Why are the transform game objects moving away from the snail when they are swapping their direction?

I am making a game in which I created a character (main player) and another character(snail). Now the snail will move on the ground, when there is no ground detected it will change its direction. I ...
gamePlay's user avatar
0 votes
0 answers
19 views

Change width/height of ellipse to always be circular, independent of viewing angle

I have the following shader graph attached to a quad that draws two circles at some position. Naturally, when viewed at an angle, the circles appear to be ellipses. I'd like to know how to adjust ...
Phyo's user avatar
  • 1
0 votes
0 answers
37 views

Solution for session based MMO [Unreal] [closed]

Re-posting the question from UE forums, since no one responded to it :) I have an idea for a game. The idea is: session based MMO with battles of 5-200 players. What’s the best networking solution for ...
cool_cat's user avatar
1 vote
0 answers
46 views

Generate coastal line from water tiles

I have a 2D tiles map. Some tiles are water (black tiles on image). I can compute which tiles are coastal when it's 4 neighbors are not water (black dots on image). I would like to compute coastal ...
bux's user avatar
  • 137
0 votes
0 answers
42 views

How to extract data about in-game events?

I recently started playing New World, and I thought I would like to create something like a "data collector". It would report data like: during the session, I fired X bullets, type of ...
WILCZUR's user avatar
0 votes
0 answers
18 views

Stuck trying to build UE for iOS on Mac

I am trying to build an AR game for iOS, using a custom build of Unreal Engine 5.1.1, on an Apple Silicon (M1 Max) Macbook Pro. (I have to use a custom branch of UE5 because there is a problem with ...
Dan's user avatar
  • 101
0 votes
0 answers
16 views

Batch rendering with more textures than texture slots

I'm trying to implement batch rendering for my 2d game engine, and I need to render more than 32 different textures every frame. The first thing that comes to my mind is to sort the vertices by ...
Faby's user avatar
  • 1
0 votes
1 answer
13 views

How do I remove the gap in a Godot HBoxContainer between items?

I created a HBoxContainer and put two ViewportContainers into it. They line up side by side, but there is a gap of a couple of pixels between them. How do I tell Godot that I don't want any spacing/...
NibblyPig's user avatar
  • 151
1 vote
0 answers
19 views

Procedural NavigationPolygon for a platformer in Godot 4

I'm trying to make navigation possible for npcs in a 2D platformer. The game generates chunks with random platforms as the player ascends, so I also need to implement the navigation procedurally. Each ...
Alex CB's user avatar
  • 366
0 votes
0 answers
51 views

Can i copy exactly same character from league of legends? [duplicate]

Lets say i will copy exactly same mechanic of a character from the game "league of legends" or Copying puzzles from another games. But changed assets etc. Is it illegal ?
Canovich's user avatar
0 votes
1 answer
60 views

Units in Unity?

I have read that in Unity 1 cube of size 1x1x1 and scale 1x1x1 is representing a cube in real life of 1mx1mx1m. Now, the only setting I find, where I can input anything related to Units is gravity, ...
the2second's user avatar
0 votes
0 answers
15 views

How do I change the motion reference in an animation state during runtime?

I tried this solution: https://discussions.unity.com/t/how-to-change-animation-clips-of-an-animator-state-at-runtime-is-there-a-way/183135/4 But this doesn't work if I try to use a different animation ...
jus coakley's user avatar
0 votes
0 answers
16 views

Vertex Shader Sphere Projection and CPU Distance Calculation

I have multiple planes whose vertices are transformed to a position on a sphere in the vertex shader. The GLSL function called pointToSphere transforms a point <...
Miguel Myers's user avatar
0 votes
0 answers
70 views

Separating Game code and Engine code

I've decided to take on a challenge of making 16 c++ games based on this challenge from FamTrinli, I'm using SDL + OpenGL. I've created a simple 2D game in the past, but I didn't like the code ...
koogel's user avatar
  • 79
0 votes
0 answers
34 views

How can I handle voxels that require extra data in my octree?

I am using octrees as an efficient way to store voxel data in a voxel game. The details of my octree implementation can be found here, but in a nutshell, each node is 16 bits, and the most significant ...
user16217248's user avatar
1 vote
1 answer
41 views

How to get Keyboard working with GameInput on PC in C++

I need some help here. I try this for a while now but it won't work and I can't find anything online. I want to write my own input handling. At first I used XInput for gamepads and Win32 callbacks for ...
Fragrantius's user avatar
0 votes
0 answers
27 views

Is there a way to make area affected by light completely white despite object color in Unity?

I have a 3D object that is affected with a directional light with a cookie texture (might be irrelevant). This object has a specific color lets say blue for the example. I would like the area affected ...
Ivan's user avatar
  • 307
0 votes
0 answers
11 views

Camera.main.WorldToScreenPoint does not return correct position

I have a cube in the center of my camera view, when I call Camera.main.WorldToScreenPoint(transform.position) I expect to get the same result as if I called ...
Majs's user avatar
  • 375
9 votes
3 answers
2k views

Should I make my "big idea" first? [closed]

I have one game idea that has stuck with me for a long time that I'm using as my inspiration for getting into game design, and I want to make sure I make it to the best of my ability. Aside from the ...
MediocreFantasy's user avatar
0 votes
1 answer
12 views

Change of computing power/ time needed when imported Mesh triangle number changes

I am doing a Unity project, that makes it necessary to import a mesh consisting of triangles. As it is possible to reduce the amount of triangles in a mesh and keeping the structure similar, I am ...
the2second's user avatar
0 votes
0 answers
19 views

Missing tiles when rendering an isometric Staggered tilemap in Unity

I'm trying to show tiles on an isometric staggered tilemap in Unity, but some tiles are missing. I think the problem might be with where I'm placing the tiles or some floating-point precision issues. ...
Nick785's user avatar
0 votes
0 answers
24 views

Fill color on an empty space on a sprite

I'm trying to make a coloring game, of which I already have a drawing (outline) of an object - let's say a face of a dog. How can I do it that whenever I click for example the eyes, it will "fill&...
DC37's user avatar
  • 1
0 votes
1 answer
69 views

Should networking and rendering be separated in multiple threads?

I've been trying to code a multiplayer client/server prototype game using SFML's networking. My server and client use TcpSelectors to wait for a certain amount of time for incoming packets without ...
xGolden's user avatar
0 votes
1 answer
13 views

Time aware point -> capsule swept collision detection?

the simplicity of Minkowski sums are one of the big reasons capsules are used in collision detection, especially for player models. One of the benefits of this should be the ability to perform ...
Krupip's user avatar
  • 1,713
0 votes
0 answers
18 views

Accessing an Animation Blueprint C++ class from a Character C++ class

This is my first leap out of tutorials and building my own game so bear with me. I've been struggling with getting C++ classes to work with one another and accessing Unreal blueprints from my code. I ...
Aaron Williams's user avatar
0 votes
0 answers
17 views

ECS: How do I instantiate Entities from a file of positions

I am quite new to Unity ECS and am trying to instantiate a few thousand entities based on positions stored in a .csv file. The file format can of course change, if that helps. My problem is to import ...
kugelblytz's user avatar
0 votes
0 answers
21 views

Why is my toon shader not getting pixelated?

I made a very simple unlit toon shader that works great, however I have to also pixelate my objects, I tried adding this part marked in blue that modifies the UVs but that did not have the desired ...
Majs's user avatar
  • 375
0 votes
0 answers
13 views

When using a render texture to render game, how can I get more control of what to render?

I use a render texture to render my entire game, I lower the size to get a "pixelation" effect. I've run into the issue now where I need to render some things in world space that should not ...
Majs's user avatar
  • 375
0 votes
0 answers
22 views

Euro Truck Simulator Standard Telemetry Format

My son's enjoying Euro Truck Simulator 2 on a Windows PC. I've ben looking a the SDK to extend its functionality. I thought it would be useful to serve the telemetry and build a physical dashboard ...
KDM's user avatar
  • 101
0 votes
0 answers
19 views

In Unity: how can I get the precise diameter of the cross section of an imported mesh?

For a simulation, I imported a mesh structure into my Unity project. This mesh consists of triangles and cannot easily be modelled by spheres/ cubes etc. I am wondering, if there is a way to get the ...
the2second's user avatar
0 votes
1 answer
18 views

ForwardAdd pass gets weird results when a point light is on in Unity

I'm writing a custom shader for the transparent object with built-in pipeline of Unity2022.3.9f1. For Subshader the Tags set like below ...
OtakuFitness's user avatar
0 votes
0 answers
64 views

Ignoring global rotation in gyroscope controller

I'd really appreciate some advice from you guys. I am trying to process a gyroscope input and map it to my game, i.e. player tilts their device and the character on screen moves left and right. ...
Cato's user avatar
  • 33
0 votes
1 answer
22 views

Can I rotate the velocity of a rigid body?

In unity, I'm working on functionality for a shooting at the mouse position from the player's weapon in a top-down 2d game. I have a working gun that instantiates a bullet prefab, that moves towards ...
dotexe's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
1120