All Questions

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

Can layermask be made for colliders in Unity?

I use collider to import a few objects in Unity. And these are triggers. Actually, what I want is, for example, there is a wall in front of me and a key behind it, and I cannot get it from in front of ...
1 vote
1 answer
64 views

Padding in a vec3f array in WebGPU memory layout

I'm trying to write a WGSL structs parser (sort of webgpu-utils thing). In order to better understand the memory layout, I'm using wgsl offset computer as a helper. Having the next struct: ...
0 votes
1 answer
19 views

NavMesh Runtime Generation In Specific Areas

Unity allows the runtime generation of NavMesh surfaces with the Unity.AI.Navigation package through the BuildNavMesh method. However, this function re-bakes the entire NavMesh in the current scene, ...
0 votes
1 answer
58 views

Skybox not texturing

I have looked for a solution for a little while now however I'm not sure if other people have encountered my same problem. I am trying to draw a skybox in a blank opengl window, I have camera controls ...
0 votes
1 answer
986 views

How to instantiate a child object in UNet without it lagging behind its parent over the network?

When I use NetworkServer.Spawn(ob) t instantiate a game object and make it a child of a transform.parent after it spawns on both ...
0 votes
1 answer
40 views

Infinite scrolling with mouse

I know we're able to scroll a background image hardcoded or using awsd keys(or arrows) if they're pressed. But what about scrolling it with mouse movement? So I have a piece of panoramic image as a ...
0 votes
2 answers
31 views

Name of 2D Image From Above

What do you call a 2D game where its view is directly from above looking down? Does the art style have a similar name? (Ie isometric is a art style, but not the art style name I am after.) When I use &...
0 votes
0 answers
31 views

Is this gimbal lock I'm hitting even with rotation matrices / quaternions?

I'm spawning a trigger box relative to another object using local offset. The engine I'm using does not provide a native function to make that conversion (at least in a way accessible to me), so I am ...
0 votes
1 answer
34 views

3D Impulse based collision resolution not behaving correctly, what could be wrong?

I've implemented a collision resolution system based on Ian Mellington's System Cyclone and afterwards based on the Game Physics Cookbook. Currently the last one is implemented. For some reason the ...
1 vote
0 answers
45 views

Can you append values to an appendbuffer and then immediately read from that same buffer?

I am looking to achieve the following: I have a compute shader that receives a Texture2D as input, where a small percentage of the pixels in the texture are white. ...
2 votes
1 answer
3k views

Instancing with Directx11

I'm a total beginner with Directx/3D programming. I need help with implementing hardware instancing on Directx 11. I'm trying to render multiple cubes on the screen, to create some sort of Minecraft-...
0 votes
0 answers
30 views

When does normalization happen in the perspective projection matrix

I am currently watching this video where the instructor shows how the perspective project matrix is actually derived. There are a few things that I am still unclear of. Firstly he says we need to ...
0 votes
0 answers
19 views

Unreal 5 Strange Global Illumination Effects

As stated in the title, I am having some strange effects with global illumination. I am using Lumen, and I have no active post process volumes (I have one which is set to "editor only") I ...
3 votes
2 answers
1k views

In an object-oriented game engine, should there be seperate classes for objects with and without parents?

I am developing a game engine in C++ (for an idea of what kind of design I'm going for, think of ROBLOX, if you're familiar with that) and I need help with a problem I have. So basically, the objects ...
38 votes
1 answer
2k views

How do I create particles that react to the player and enemies?

I'm currently making a game with my own game engine which I've written in C++ and I'm using the most recent directx SDK. The game is a top down space shooter (with a pretty interesting twist) and I'...
0 votes
1 answer
451 views

Depth sorting issue

I've been working on a custom tile-based map editor for a while now, and everything works as expected, or so I thought until I've tried rendering the actual map including the dynamic objects as well. ...
3 votes
4 answers
580 views

How to sub-divide a hexagonal grid reference system

I have been using @amitp's excellent guide (and javascript library) to create a hexagonal grid system https://www.redblobgames.com/grids/hexagons/. I'm using flat-top, inverse-y cubic/axial system. ...
0 votes
0 answers
30 views

Should a free roaming camera movement be controlled by the physics engine (for smooth movement)?

I have a hobby engine (for fun and research) with a free roaming camera implementation that works by modifying the PositionComponent and ...
1 vote
2 answers
546 views

What is moving the camera useful for, if I have to do culling myself?

I'm new to libgdx and especially to using OrthographicCameras. I'm trying to understand how useful they are. The question is, suppose I have a game map 500 units wide. I have an OrtographicCamera ...
0 votes
0 answers
28 views

How can I reduce beam intensity without significantly reducing light brightness?

I picked up Unreal 5.0 last week and don't what question to ask the oracle Google to help me fix the problem. This is what I have. (ImgA) This is the look I am trying to get. (ImgB) I started with ...
2 votes
0 answers
33 views

Exported custom classes or enums are unrecognizable

Is there a way to export custom classes in C# in Godot4.2 that don't show during play in remote the class ID but the class name for instance? Also, exported enums are shown as numbers during play in ...
0 votes
1 answer
38 views

Why is my enemy in unity 2d not moving?

So I'm trying to make a 2d unity platform game for a school project but I can't seem to get the enemy to move. can anyone help? much appreciated!
0 votes
0 answers
22 views

I have a question about 3D in Java. How to upload and display non-skeletal animation? [closed]

I have a question about 3D in Java. I need a program to show a 3D model, which is a panel with buttons, a screen and toggle switches. When you click on a button or toggle switch, the corresponding ...
2 votes
1 answer
464 views

Trouble GamePad input on iOS but works perfect on Android

I am having trouble getting input from on iOS devices (iPhone 6 Plus and iPad). Here is my code, ...
63 votes
2 answers
29k views

I'm rotating an object on two axes, so why does it keep twisting around the third axis?

I see questions come up quite often that have this underlying issue, but they're all caught up in the particulars of a given feature or tool. Here's an attempt to create a canonical answer we can ...
0 votes
0 answers
31 views

Can WFC generate aesthetically pleasing maps?

Is wave function collapse actually capable of generating aesthetically pleasing tilemaps? Let's very roughly define "aesthetically pleasing" using an example from the world map of "...
0 votes
0 answers
70 views

How to pack files to .dta format for Hidden & Dangerous 2?

How can I pack files back into a DTA file from the game "Hidden & Dangerous 2"? I want to change several sounds in the game in the file Sounds.dta. I ...
0 votes
0 answers
75 views

Buy button not working

I'm working on a Roblox tycoon game. I don't know how to allow the player to buy things because just using: if tycoonPlayerMoney.Value >= 10 then. doesn't work. ...
1 vote
2 answers
1k views

Switched from immediate mode to VBOs, game runs slower

I'm trying to improve the draw performance on my c++, OpenGL, SDL game. Back in school we ...
0 votes
0 answers
9 views

Is it possible to prevent a graphic raycaster blocking 2D rays in different layers, from a different camera?

I have a graphic raycaster attached to a canvas, with the blocking layer set to exclude all layers except "UI": ...
2 votes
1 answer
115 views

How can I evaluate an entry level salary in game developer?

I want to make some informed decisions about an entry level game developer position. Specifically, how can I determine if I'm getting a fair salary. I realize that many different factors can impact ...
1 vote
1 answer
65 views

2D Sprite components causing text (TextMeshPro) components to be hidden in Unity

Edit: Depending on where my game character is located in the map, some text (TextMeshPro) components get hidden/turn invisible. I have tried to figure out what is causing this. With the help of a ...
0 votes
2 answers
57 views

How do I detect a hit by a swung held object?

I have an XR Grab Interactable wrench and the grab is working fine, as is movement. I'd like to use it to smash some chains, so I figured that I could use an OnCollisionEnter on the chains, and check ...
3 votes
1 answer
5k views

Deproject Screen To World Coordinates (Unreal Engine 4.15)

I am working on a small game in Unreal Engine 4.15 using blueprints only and encountered a behaviour I don't understand. The game is based on the Top Down Example. As I'd like to teleport an actor ...
0 votes
0 answers
172 views

calculate projectile velocity from moving shooter

I have a task which i have a moving ship that can shoot in any direction i want. i have to shoot to standing or moving nearby objects. the problem is, I can't correctly calculate true shoot direction....
0 votes
0 answers
12 views

Launch4J wrapped jar produces JNILibLoaderBase errors

I created an executable jar file bundled with JOGL, then wrapped the jar into a windows executable using Launch4j in order to pass runtime java parameters. If I run the jar from a command prompt I get ...
0 votes
0 answers
45 views

Im trying o make snap in Godot. How do I get ~100 frames for one sprite(the card)?

How do I get a sprite with ~100 frames that can be changed with a script in Godot. I am new to Game development.
0 votes
1 answer
90 views

Minecraft-like simulation optimization

I am working on a voxel game similar to Minecraft. The goal would be to handle more entities but also offer a more immersive experience by the fact that the player does not need to worry about loading ...
0 votes
0 answers
23 views

Looking for simple gravity + collision Javascript library for platformer game [closed]

I've been looking all over, but all the libraries I've found seem to fall into two categories: "Everything and the kitchen sink," or "We detect collisions, but don't actually resolve ...
4 votes
1 answer
516 views

Scene2d Stage Actor setup issues

I am creating a game using libgdx. In the same each level has a class. I have stage as a member variable of the class. To this stage, I add actors. Inside the levels class, I have attaced the input ...
0 votes
0 answers
20 views

Using Unreal Engine 5 PCG graph to spawn terrain altering blueprint actors causing loop

I am using a PCG graph to spawn in actors, which are blueprint stamps for the terrain height map. I believe the issue I am facing is that when the blueprints are spawned, they alter the terrain, which ...
0 votes
0 answers
31 views

Specular lighting does not appear

I'm struggling to add specular lighting on-top of diffuse lighting and not entirely sure where I'm going wrong. I've followed the instructions given in our lecture but it just doesn't seem to be ...
1 vote
1 answer
68 views

How to clean up list entries when objects are destroyed in Unity?

We are developing an economic sandbox somewhat similar to a mixture of The Guild and Kenshi. In this game, both the player and the NPCs will often create and destroy (consume) various objects. The ...
0 votes
2 answers
402 views

Converting from global coordinates to local coordinates

I am trying to create a Radar/Minimap for the F1 2021 game in C#/WPF. Here is a image of what I am trying to replicate In the image, the white car (my car) will always face the direction it is going. ...
1 vote
0 answers
18 views

How can I refer to the render target in Unity after postprocessing?

In Unity's Universal Render Pipeline, there is a PostProcessPass class in PostProcessing.cs. What I would like to know, how I ...
-1 votes
0 answers
53 views

other objects are moving with player [closed]

I was trying to locate other objects in world space but they where moving with camera and I couldn't able to locate them, Camera is moving with Player Car but other Obstacle cars are also moving ...
1 vote
0 answers
26 views

Is it possible to add new waypoints to Dolly Track in Unity CinemachineVirtualCamera on the go?

I'm making a racing game "on rails" that utilizes generated map (similar to outrun). The map is made out of chunks that appear every time player crosses a Trigger area on the chunk that is 3 ...
11 votes
1 answer
9k views

Angle of Reflection

I have this "Breakeout style" game. I have a cannon at the center, blocks around the cannon and pads around the blocks. This is how the game looks like: I've managed to get the collision ...
1 vote
1 answer
457 views

In the Unity editor, why are the coordinates of a newly created root object not set to 0,0,0 when the object is at the origin?

My initial coordinates of a newly created object without a parent are not 0,0,0 They’re supposed to be at the origin. Instead they are some random number. And how can I set them to zero without moving ...
7 votes
2 answers
1k views

Aligning pathfinding to the center of tiles?

I'm looking to achieve tile by tile movement in a project I'm working on. I employed the use of the asset Simply A* Path-finding to allow a unit to navigate the terrain. Since the tiles are simply ...

15 30 50 per page
1
2 3 4 5
1126