All Questions
56,273
questions
1
vote
1
answer
463
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 ...
0
votes
0
answers
50
views
Pixel platformer character collides with blocks above while there's still a visible gap
I was trying to the set up a tile map for a 2D pixel art game in Godot 4.1 (following a tutorial) and realized that there seems to be an issue or something I am not aware of with the way collisions ...
0
votes
0
answers
23
views
clion.sh does not exist
I have Unreal Engine in Linux launched with ./UnrealEditor
This file here ...
0
votes
2
answers
65
views
Simulate Velocity For A Projectile Moving Along A Spline
I'm using Unity's latest Splines package(v2.5) to move a projectile across a spline with speed. It works perfectly and the projectile moves across the spline to it's target with linear speed.
But I'd ...
1
vote
1
answer
1k
views
Line of Sight Check Theta* Algorithm
I am looking at implementing the Theta* algorithm in a 2D NavMesh.
I have A* working, and I need to add a line of sight check to turn it into Theta*, this seems relatively easy in a uniform grid but a ...
0
votes
0
answers
38
views
Unity AAB build breaks with "split application binary" checked
I am currently encountering a challenge similar to the one described by a fellow Unity developer in this forum thread.
I am using Unity version 2022.3.10f and configuring asset bundles while building ...
1
vote
2
answers
3k
views
Unity Animator default values overwriten
I have created a project to reproduce the problem I'm currently facing.
I'm running a simple unity animation that moves a game object and expect to be able to reset the gameobject position. This can ...
6
votes
2
answers
3k
views
Reading from a staging 2D texture array in DirectX10
I have a DX10 program, where I create an array of 3 16x16 textures, then map, read, and unmap each subresource in turn. I use a single mip level, set resource usage to staging and CPU access to read. ...
0
votes
0
answers
33
views
Manual calc of perspective projection and getting point on the screen
I'm need to draw the red rect on the first vertex of gray platform.
To begin with, I draw a gray platform with a perspective projection and set it using gluPerspective:
...
1
vote
2
answers
30
views
Best way to implement a carrying tray in VR using Unity
I need a way to carry objects on top of other objects in VR without jitterness causing the objects to fall through a tray for example.
I've tested with rigidbodies having very high friction, this does ...
0
votes
0
answers
39
views
Using 3D Rotation track animations in the AnimationPlayer in Godot
Godot v4.1.2.stable
My goal is to make DirectionalLight3D rotate 360° around the scene, and in a second animation change the angle of rotation every 180 rotations between 75° and 30° on the X axis (a ...
1
vote
1
answer
2k
views
Assimp - Error loading .obj files
I'm trying to load .obj files in my little game. I decided to use assimp as tool to import those models. But it seems that assimp does not import them correctly.
I looked for a simple cube mesh ...
2
votes
1
answer
31
views
Godot 3.5: Web Build using custom GDNative C++ Library does not work due to `dlopen` error and failed linking
The Problem
Currently I am trying to get the official GDNative C++ example for Godot 3.5, which can be found here working in the Web Export context. So far, I managed to export to X11.64 without any ...
0
votes
3
answers
586
views
Why do my svg sprites (vector images) appear to have very low resolution in the game view and how can I fix this issue?
I recently drew a game sprite for my game using Adobe Illustrator 2021. I exported the sprite using the Export for Screens menu to export the entire artboard. The problem I have in Unity 2021+ is that ...
0
votes
4
answers
131
views
How to tell whether an expression is independent from frame rate?
I'm working on a videogame where part of the logic involves increasing a value each render frame (a render frame is equivalent to a simulation step where the result is drawn on the screen).
Frames can ...
1
vote
1
answer
54
views
What would be the best way to gradually increase the speed of a 2D arcade game with gravity physics in Unity?
I'm somewhat new to Unity, so I'd like to hear some more experienced thoughts on this. I'm using C# if that helps.
I'm currently working on an arcade game somewhat similar to "Doodle Jump" ...
0
votes
0
answers
42
views
Managing multiple collisions in a single frame
I have a object with box collider that spins 360 degrees before destroying itself. I have a lot of enemies spawning around the player. The object spawns, spins and destroys itself. Imagine it like ...
1
vote
0
answers
17
views
Do objects loaded from AssetBundle need to be unloaded after they are no longer in use?
For example, in the LocalizationProvider class a Sprite is loaded this way
...
5
votes
1
answer
516
views
Orthographic Camera is not Occlusion Culling?
In the scene where the occlusion culling is done as desired,
When I change the camera to orthographic, occlusion culling is not done.
(Look at the sphere the red arrow points to on the right)
What ...
1
vote
1
answer
21
views
Fixing thing on unanchored object in Roblox
I am currently creating a car game in Roblox which has many ramps. For visual fun, I have created an unanchored (movable) burning car laying next to it so it looks like a car already tried this ...
0
votes
1
answer
119
views
Inconsistent Speed Of A Projectile Traveling On A Bezier Curve
What I'm doing:
I'm moving a projectile to it's target along a Bézier curve with one control point.
The projectile moves from Transform A to ...
3
votes
1
answer
45
views
Red thing inside of capsule object that shows when running the game in Unity
There is a red thing inside of my capsule object that shows when running the game in Unity. How do I make it invisible? I have tried looking at the capsule collider, but I couldn't find anything to ...
0
votes
1
answer
981
views
Trying to define a custom Composite to the new Unity Input System but failing somewhere
I'm following the "Touch Samples" sample project that comes with the "input system" package.
In one of the sample scene, there is a script that defines a custom composite Binding (for example the 2D ...
0
votes
1
answer
16
views
In Unreal Engine 5, how do I include and use UPlayMontageCallbackProxy::CreateProxyObjectForPlayMontage in C++?
I want to play my UAnimMontage via C++, and in particular, want to make use of the conveniences of UPlayMontageCallbackProxy.
...
0
votes
1
answer
87
views
Converting number in name of gameobject into alpha keycode
So I have no idea if there is a way to do this, but I'm trying to find a way to turn an alpha number in a game object name string into an Alpha key code, which I'm going to use in an Input.GetKey.
...
1
vote
1
answer
706
views
How to set the AudioStreamPlayer to switch between tracks
Conditional Music Playback
What's important here is that I know how to switch the track that's being played back to another if some condition is met in the scene. If possible I also want to know ...
1
vote
1
answer
75
views
How to properly split damage against armor?
I am developing a third-person shooting style game and I want to implement an armor system. The system that I have envisioned does not reduce the damage to 0, but by half. So the incoming damage is ...
0
votes
1
answer
133
views
How can I make a reliable time-based object updating system?
So an object has a position, velocity, and is affected by gravity.
...
0
votes
1
answer
1k
views
Unity AudioSource.PlayClipAtPoint - controlling attenuation
New developer here, looking to do some raycasting and controlling audio positioning in 3D space based on the raycasts interactions with other objects.
I've got the raycast 'casting' and able to report ...
17
votes
3
answers
5k
views
Game loop isn't performing well enough, so my frame rate is too low (Windows Form + GDI+)
I decided to learn about building games, so I picked up C# to use it along with Windows Form - I already have C# experience, so that was the main reason I did so. That said, I tasked myself to build a ...
1
vote
0
answers
32
views
Separating axis theorem implementation results in limitless extending colliders along the Z axis
I am trying to implement SAT and it works except for the fact that colliders extend infinitely along the Z axis and I can never get past them. I also have confirmed that ...
0
votes
1
answer
473
views
Texture base color not showing for Unreal Engine auto material?
So on the right there's the item that needs to be in the auto material (the base color for snow) but it isn't showing up in the material instance. The node is in the proper group (also shown)
Any ...
1
vote
0
answers
45
views
LWJGL3. A strange graphic artifact of OpenGL 3.x
I work in java with lwjgl3. I came across a strange artifact, the source of which I have not been able to determine for a very long time. I'm drawing a large surface. When I approach this surface and ...
7
votes
3
answers
4k
views
How do I Rigidbody.AddForce(Vector3) in Unreal Engine?
I am coming from the Unity Engine, and trying to get my feet wet with Unreal Engine 4.8.x. I want to add a one-time force to an object. To accomplish this in Unity 5, I would use:
...
5
votes
3
answers
9k
views
Getting a pixel of Sprite at the cursor position in Unity
Summary: I've been trying to figure out a way to use simple box colliders as a nice and efficient "first pass" collider. For the "second pass", I want to check that the area clicked has an alpha value ...
0
votes
1
answer
3k
views
Unity Mirror client scene.local player.connection to client.client owned object not working in client
U hmm I'm new to mirror networking I just wanna find objects that the local player has authority, but it doesn't work on client, is there a solution to this? Well I could make an object tracking ...
0
votes
0
answers
27
views
Clarification on scene graph implementation. Adding object/node to a root node or container?
I learned about scene graphs from this chapter on learnopengl and using this I'm trying to make a simple imgui window that can display the scene graph, but one thing that wasn't made clear/I'm having ...
1
vote
1
answer
442
views
How To Calculate The Correct Sprite Dimensions?
I am creating a 2.5D game similar to Paper Mario. I want the sprites that I import to Unity to be the perfect dimensions so that quality is not affected by the camera's position. If I'm understanding ...
5
votes
1
answer
123
views
How to get consistent collision impulse values for colliding rigid bodies in Godot?
I'm writing a game where you can pick and throw objects and depending on the force of the impact they break.
Using the get_contact_impulse method to calculate the breaking point gives me very ...
0
votes
0
answers
53
views
Unreal engine running slow with lots of ram [closed]
Whenever I use unreal engine it runs at like 20 fps and when I play the game it gets even lower. I have 16 gb of ram and an intel i5 processor.
Why is it running so slow and how can I fix it?
8
votes
4
answers
10k
views
Handling movement on sloped surfaces - clamping character to sloped surface
I've noticed that a lot of people seem to have this issue but I've yet to find an actual working solution - when a rigidbody-based character controller (I'm not using Unity's character controller) ...
1
vote
1
answer
650
views
Vertex Displacement Shader Graph With The Camera Moving Issue
I have a foliage sway shader, that works well.
But when the camera moves the vertex displacement stops:
And the weird thing also is that if I move the camera to the right nothing seems to happen, ...
0
votes
1
answer
50
views
Simulated light for a 2D tile-map with just SDL2?
I'm working on a 2D tile-map RPG with C++17 and SDL2 + SDL_Image.
There are daily cycles, weekly cycles and seasons. Even a kind of weather engine provides atmosphere. The moods and times of day are ...
0
votes
2
answers
7k
views
Low FPS in Unreal engine, but GPU usage is low as well
I am running an Unreal Engine 4 project which has many high quality assets. My computer is fairly strong:
CPU: AMD Ryzen 5 3600 6-Core
GPU: GeForce RTX 3060 SSD: Lexar 500GB
NM610 M.2 NVMe SSD
RAM: 2 ...
4
votes
1
answer
1k
views
Friction due to gravity in an impulse based physics engine
In my physics engine, I'm using impulses to solve collisions. I'm basing all calculations on these equations:
...
0
votes
0
answers
62
views
How can I efficiently load and unload regions of a world as the player moves?
I am creating a game with infinite terrain. Sections of the terrain are broken up into regions of fixed size for handling (similar to chunks in Minecraft). I would like to load and unload them as ...
-2
votes
0
answers
45
views
How do I get into game development with an awesome idea? [duplicate]
So I have this idea for an awesome game. How do I get into game development with it? Should I learn to code and what engine should I use? Can I become a professional developer with the idea?
Thanks.
0
votes
0
answers
47
views
How can I get a team together to make a game
I’m interested in making games and I have some ideas, basic programming and art knowledge. How can I get together a team of people who have more skills than I do to help make the game?
19
votes
4
answers
13k
views
How can I generate random lakes and rivers in my game?
I have a 2D block building game and am trying to make randomly generated lakes and rivers. I have looked into the Perlin noise algorithm, but, I couldn't get it to generate random and nice results.
I ...