All Questions

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

Correct order on accumulating rotations

Suppose I have an Arcball camera that rotates up/down and sideways based on mouse input. After doing some research, I discovered that the correct way of calculating the new orientation is to do it the ...
CheeseS's user avatar
1 vote
1 answer
101 views

How to hide things from noclipping players?

I am specifically working in Garry's Mod, and I am wondering if there might be a way to hide things from players using noclip to travel outside the bounds of the ...
FenFox's user avatar
  • 21
0 votes
0 answers
24 views

Sprite2D texture repeat switches from Mirror to Disabled when resizing window

In Godot 4, I set the texture repeat of a Sprite2D to 'Mirror', When I run the game, it works fine except when I resize the window — then the texture repeat switches to 'disabled'. Is there a ...
Shahzaib Hassan's user avatar
0 votes
2 answers
111 views

How to make ranged RTS units move to their firing range from an opponent using flow fields?

I am trying to make a simple real-time strategy game (only the battle system of units fighting each other; no building, no economy, only battles and victory). I am using flow fields to make the units ...
Hao Hao's user avatar
0 votes
0 answers
29 views

Different texture generation methods with opengl

I'm experimenting with texture generation so I can begin to implement height map generation/terrain generation. Right now I'm just experimenting with different generating functions. Right now I'm just ...
YamMan's user avatar
  • 49
26 votes
12 answers
7k views

Avoid player getting stuck with underpowered character

For a sidescrolling shooter I’m working on, I got stuck on the following: The game allows the player to buy upgrades for their character. This oppertunity comes in the form of a shop that sits at the ...
tkers's user avatar
  • 361
0 votes
0 answers
29 views

Raycaster causes Freezing in Unity Using Oculus SDK and OVRPlayerController

I am creating a scene in Unity using the Oculus SDK and XR Plugin. My scene works well in the Quest 2 including 2 VFX I have added and sound effects. I am following a LinkedIn course about VR UI - and ...
user3046771's user avatar
2 votes
4 answers
225 views

Would slo mo work for multiplayer?

I have hardly any programming knowledge but I want to get into game design but I have a question would slo mo work in multiplayer if used in this way. Where the player experience the game 10 times ...
Funny fish 's user avatar
0 votes
0 answers
31 views

how to get all points contained in the area of an object of any shape

how would I get points contained by objects, so that I can check for intersections of points, and I also ask myself if checking for intersections each frame would be too CPU intensive?
Nathan Francisco-Ribeiro's user avatar
0 votes
0 answers
84 views

JIttery rendering and ghost trail behind platformer character in Godot

I have no gamedev experience and I just started learning. I wanted to develop a basic platformer to learn. I got stuck pretty soon with rendering in Godot. When I run the game, it just feels... ...
alturkovic's user avatar
0 votes
1 answer
17 views

How to use Camera.cullingMask to selectively render certain objects?

The documentation of this method doesn't provide any examples of implementing it. I don't understand how it works or even how I should use it to only render particular objects while not rendering ...
Nikhil Nair's user avatar
1 vote
1 answer
38 views

Instantiate prefab behind moving player

I'm trying to instantiate a bomb prefab behind the player. The script below works fine when the y rotation is 0,90,180,360. The bomb is instantiated behind the player. But for other angles, the bomb ...
single arrow games's user avatar
1 vote
1 answer
21 views

Isolating a mesh so it doesn't interact with Raycasts in Unity

My problem is as follows: I have a a convex hull of some points. Given a point that's outside of said convex hull, I would like to find the closest point on the convex hull. To that end, I have a ...
user1999728's user avatar
0 votes
0 answers
20 views

Bullet physics linker error

I am trying to build my project in VS, which is a copy of HelloWorld.cpp provided by Bullet. I am getting a list of errors of sort "unresolved external symbol" when I build my project, ...
SigmaKlim's user avatar
0 votes
1 answer
50 views

How to calculate angular momentum of two colliding bodies about their shared center of mass in 2D?

I'm following this guide to implementing collisions in 2D physics. It shows this diagram, but I don't understand how to calculate the values of Da and ...
noodle_run's user avatar
0 votes
0 answers
42 views

Generating tris for concave polygon 2D

I have an arbitrary array of points that describe vertices of the polygon 2D, they ar in order. To generate plane mesh for that, I need to generate tris. For something like circle/hexagon/square it is ...
Kirikan's user avatar
0 votes
1 answer
24 views

Modifying LibGDX vector2's seems to do nothing

I have a piece of code similar to this: Vector2 test = new Vector2().setLength(20).setAngleDeg(45); But when I'm trying to print its contents (such as ...
big papa's user avatar
0 votes
0 answers
16 views

Export a Gameobject to USDZ in Unity for Android and iOS

I have tried using the usd sdk from Unity and it seems like there is no support for usdz export in runtime for iOS and Android in Unity. I was wondering: If anyone is familiar with any other external ...
Shuvro Sarkar's user avatar
0 votes
0 answers
56 views

Data driven battle logic

Concept I am designing turn-based boss battles and want each boss to have different behaviors and skills they perform during a battle. The boss is selected randomly and is identified by a unique ...
VoidTwo's user avatar
  • 101
0 votes
0 answers
45 views

Why are global constraints so ineffective?

There are two objects here, each with 3 constraint points. I use formula: $$ \lambda=(JM^{-1}J^{T})^{-1}(-JV-b) $$ $$ \Delta V=M^{-1}J^{T}\lambda \ $$ I put the information of the three constraint ...
noodle_run's user avatar
0 votes
0 answers
22 views

Getting missing prefab error in unity

Getting the following error while loading a project on unity. I'm usung ubuntu
Vamsi Shankar's user avatar
1 vote
1 answer
77 views

Recreating The Lighting In Paper Mario: TTYD In Unity

Goal: I would like to recreate the lighting in Paper Mario: The Thousand Year Door. Currently, I am only using a directional light. I am also using URP. Comparison: Here is an example of how it ...
PayasoPrince's user avatar
0 votes
1 answer
34 views

Making contributions to a Unity project without having Unity editor installed

I'm interested in setting up a small Unity open source project so that non-Unity devs can contribute. I would limit their involvement to making a small change to only one script, say adding a new ...
waffles13's user avatar
0 votes
2 answers
67 views

Is there a logical reason for SFML's Vector2 being templated?

The game development library SFML has a Vector2 class template (and a Vector3 for that matter), which can use any arithmetic ...
JensB's user avatar
  • 147
0 votes
0 answers
36 views

Character is stuck between grid cell gap [duplicate]

I started making a D&D-style turn based tactic game. I have a problem with my tilemap. I made a script to find the location on the tilemap for my character and for the tile I clicked with the ...
James's user avatar
  • 1
1 vote
1 answer
45 views

Stay Upright Within Rotating Area

I am making a game that takes place in space and I want you to be able to stay upright in a spaceship even if it rotates. I have this set up: Its a platform and an area that rotates. I have ...
TheJalfireKnight's user avatar
0 votes
0 answers
32 views

How to combine 2 splines from different spline container in unity spline 2.3.0?

I'm working on with Unity Spline 2.3.0, I realize that the splines cannot be touch and combine with other splines that exits in different spline container. Is there any way to connect them? I tried to ...
Duy Hạnh Trần's user avatar
2 votes
0 answers
34 views

How to correctly rotate 2D orthographic projection around a central point?

I want to rotate a 2D orthographic projection around the centre point of my view. However, something is off (it looks like a translation) but I'm not sure what. To put some concrete values on the ...
junglie85's user avatar
  • 121
0 votes
0 answers
28 views

UDim2.new(a, b, c, d) is acting very strangely

I am using a debugger and (i-1)*50 is equal to 50, but ...
ridiche34's user avatar
0 votes
0 answers
21 views

Stitch meshes with different level of detail

I have an implementation for generating a mesh using marching cubes with different levels of detail. The issue arises when transitioning between meshes with higher vertex density (smaller scale meshes)...
z3nth10n's user avatar
  • 141
0 votes
1 answer
32 views

How time zone differences affect play time of early access N-day window?

I have seen a couple of game developers that grant early access for their video games N days before release date noting that "actual game time is subject to applicable time zone differences"....
Michael Munta's user avatar
0 votes
0 answers
36 views

How to smooth sprites drawn from an atlas (either with linear filtering or some post processing technique)?

I've been doing a 2D renderer for a Tibia clone and came up with a design where all textures are bundled into a texture atlas. The pixelated style isn't working well (textures are often shrinked or ...
fusion32's user avatar
3 votes
1 answer
341 views

How are character controllers built upon complex gameplay systems?

I would like some industry advice. I feel like the starting part to every game I create is the character controller. My goal is to create a solid base character controller that I can expand upon for ...
Jacob Edie's user avatar
0 votes
1 answer
64 views

The bottom of the player capsule collider is going into the ground box collider

The bottom part of the player capsule collider is going inside the ground collider. I am using a raycast for detecting whether the plauer is grounded; an object (sphere) that is present on the bottom ...
Sami Rehman's user avatar
0 votes
1 answer
72 views

How to assign a Resource Array to a variable in Godot 4?

In Godot 3, you could do this: export var (Array, Resource) test_variable I tried to recreate this in Godot 4, but I could not figure out how. This is what I tried:...
TheJalfireKnight's user avatar
1 vote
0 answers
23 views

Texture wrapping mode for KHA

I'm working on a game engine which is written in Haxe with the Kha API. I need to set a texture to wrap mode but I can't find any function or variable to use/set. The image is created with these ...
Yvain's user avatar
  • 133
2 votes
1 answer
118 views

Why does Unity have no official gameplay framework?

As a generalist developer, I have made many server and backend apps and also client-side UI apps. Most of these environments have a certain architecture. For example, in most backend apps, even in ...
virtouso's user avatar
  • 2,566
-1 votes
0 answers
101 views

How to generate levels similar to Spirit Hunters: Infinite Horde?

I am doing research on map generation, and want to know how to generate something like this area in the game Spirit Hunters: Infinite Horde: Here are the specific features I want to reproduce: Layer ...
Ahmad's user avatar
  • 1
0 votes
0 answers
32 views

How to change the locomotive status from moving in a spline to moving in the next spline when it meets the next rail?

I want to make a train that can move in a curve. I have downloaded a Train Spline Walker unity package. That package can generate a spline, and the train's locomotive will move in the spline with a ...
Duy Hạnh Trần's user avatar
0 votes
1 answer
59 views

Gaps between terrain chunks generated with marching cubes

My generated terrain chunks have gaps between them: I'm using Compute Shader and Simplex Noise from FastNoiseLite library to generate noise: ...
Daniilmp3's user avatar
0 votes
0 answers
26 views

LWJGL Shader not displaying anything to the screen

My basic shader program isn't displaying anything to the screen. Please Help! Here's my code: ...
pcarroll17's user avatar
0 votes
0 answers
149 views

Finding loss of angle and length due to rotation

I'm working on a targeting system for my 2d game. But I want to see the object in isometric perspective. My calculation is correct for 2d objects but it doesn't work for rotated in x axis objects. I ...
26.565's user avatar
  • 1
1 vote
0 answers
17 views

Editor script in VStudio cannot 'see' main scripts

(Notice: This is a crosspost with r/UnityHelp) When loading a custom editor script into VStudio, it cannot see the main game scripts. This is quite annoying for writing code, as you'll imagine. ...
Weckar E.'s user avatar
  • 822
2 votes
0 answers
24 views

How to deal with different version of Direct3D12 interfaces?

Let's say I want to enable debug layers for a Direct3D 12 renderer, for which I need to create a ID3D12Debug object. Problem is, there are 6 different version of ...
marked-off-topic's user avatar
1 vote
0 answers
44 views

Unity custom shader turning pink

I'm quite new to writing custom shaders. Wanted to try it out by creating a sand-standard surface shader. A problem that occurred was when I finished writing my custom shader in Unity, the material ...
Pantra's user avatar
  • 11
0 votes
0 answers
30 views

How to handle collision detection with different 2D shapes while maintaining performance? Is polymorphism appropriate?

If I'm making a small library for handling 2D shapes, should polymorphism generally be avoided? I know that it can worsen performance but it's not like polymorphism is never used in game development ...
JensB's user avatar
  • 147
1 vote
0 answers
48 views

VR Controllers in Roblox Studio not working as expected

I am trying to create a Roblox game with VR support. My understanding is that this code should move the hands of the character as the user moves the controllers: ...
ridiche34's user avatar
0 votes
1 answer
38 views

What does the Project Manager star do?

Can't seem to find any reference to this, ...but what does the star on the left hand side Godot Engine Project Manager actually do? Yes, I also need better names for my projects.
Ghoul Fool's user avatar
0 votes
2 answers
149 views

How to make real-time pvp game where both players perceive in-game time normally while actual relative time-flow speed between them is different?

I was thinking about making a real-time (not tour-like) PvP game where both players among other attributes would have 'speed' attribute that would define their movement and attack speed. But because ...
Amae Saeki's user avatar
0 votes
1 answer
43 views

Is it safe to store the state of a game in Javascripts localStorage?

I am going to be completely honest, this is not 100% about storing a game state in Javascript's localStorage, it is more to do with a utility program storing statistics. Since it can be related to ...
Rewind's user avatar
  • 111

15 30 50 per page