All Questions

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

Dragging GameObjects out of UI

I want to drag a game object out of a UI. Currently, I am instantiating a game object on top of the UI(on an upper sorting layer), and adding code to make it able to drag the object. However, Unity ...
0
votes
0answers
14 views

Right Axis warps on 3D planet's equator

I am using JavaScript and WebGL for a game which rotates a player around a 3D planet. The problem is that the matrix's right axis vector starts locking up and spinning in the wrong direction around ...
0
votes
1answer
20 views

How to modify the z depth value inside the vertex function of a surface shader?

I wrote the following surface shader. The idea is to increase the Z depth value of vertices, after projection. ...
5
votes
3answers
2k views

Where should complex state logic in an ECS reside?

I've been using ECS for a while, at the moment I'm using my own, but it's pretty standard. Components are data only, Entities pretty much just a Map with some additional metadata and Systems that ...
0
votes
1answer
762 views

How can I limit the y-rotation of a cinemachine POV camera based on the player's direction?

I'm using Unity (2019.4.11.f1, HDRP). My goal is to create a first-person POV camera. To this purpose, I tied a Cinemachine (2.7.3) Virtual Camera to the head of a third person player character (one ...
0
votes
2answers
249 views

How do i easily clamp my cameras rotation when using transform.rotate()

I'm making a fps controller, and I'm trying to clamp my cameras x rotation. Here's my code so far: ...
0
votes
2answers
103 views

Rotating on a slanted surface? [closed]

I want to rotate (change it's yaw) an object when its sitting on slanted ground. Pretty much I want to rotate around the ground's normal. Right now I ray cast down, get the ground's normal. Then I do:...
0
votes
0answers
12 views

Godot some faces of imported from Blender model are darker then other

I tried to export some scene from Blender to Godot as .fbx, .dae and .glb, but every time it ...
0
votes
0answers
9 views

Unreal engine Packaging error for android ETC2

I get the following error while packaging my Unreal Engine project for Android: UATHelper: Packaging (Android (ETC2)): BUILD FAILED in 35s UATHelper: Packaging (Android (ETC2)): ERROR: /bin/sh failed ...
0
votes
1answer
41 views

Why is my player ball's movement bouncy and bumpy?

I've come across an odd effect in Unity and would like to understand why it's happening. Using some simple code I've achieved a horizontal movement effect, of a ball across a flat square surface, yet ...
0
votes
0answers
10 views

When do you need to add sound effects?

I am making a small 2D sidescrolling shooter and have all the basics done now. I have a player, enemies, different weapons and a map. I am unsure about at what point in development you should add ...
0
votes
0answers
14 views

Number and Counting Matching Card game [closed]

I'm now developing on a game called number and counting matching card game, and I'm thinking what the best algorithm to use is? • When the game starts, all card are turned face down. • The player must ...
0
votes
1answer
23 views

Linux Game Development - Dependency Management

I'm working on a game that I'm trying to build for Linux and distribute via Steam. At present, there are some dependency issues and I'm wondering about the best approach: Bundling .so files with the ...
0
votes
0answers
19 views

Linux vs Windows for Unity Server [closed]

I'm working on an online multiplayer game with Unity's UNET system. I test my game between some players and I used the windows platform for my servers. But I want to know if I choose Linux instead of ...
0
votes
1answer
63 views

counting coins after a certain time

I am beginner in unity . and now i am trying to write my first game. the game is includes appear random coins in random place on the screen , after passing a certain amount of time.(one coin will be ...
1
vote
1answer
15 views

Unity3D InputSystem works in editor but not in Build

I am trying to move a camera around with controller input using the new Unity Input System package (Ver. 1.2.0) and everything is working great in the editor. However, as soon as I build the project ...
0
votes
0answers
15 views

Finding where ground is in procedurally generated terrain

Terrain in my voxel game is generated by combining 2d and 3d perlin noise. if (y < (noise2d(x, z) + noise3d(x, y, z)) * amplitude) { // place block } To ...
0
votes
0answers
8 views

transform.localPosition does not wok in Unity

When im breaking fence GameObject there should pop up scores, so it works fine. But position of pop up scores is too low, im trying to raise it by ...
3
votes
1answer
348 views

Rendering Tilemap Tile Layer Side by Side for Infinite/Endless Runner Game

I was strugeling this for days how to implement tilemap into libgdx and box2d with infinite/endless scheme. I can load a single map and display everything on screen. But placing 2 or more tilemap side ...
-1
votes
0answers
14 views

How to color provinces based on current ownership

I'm trying to make a Paradox-style map, where every color on the map represents a different province. Take a look at the maps on the EU3 wiki for examples. I have my province map, and each color is ...
0
votes
0answers
14 views

Unity sprite takes 5 times more memory in profiler

So as stated I have a sprite that when compressed takes 2 MB. But when I look into the memory in the profiler, it says that the sprite uses 10 MB! This happens both when I profile in the unity editor ...
1
vote
1answer
142 views

How to make a sprite jump up and then return to original position android java

I am just starting out in game development and I am trying to make a simple android game using GDXLib. I want to make my sprite "ball" jump straight up in the air and then return to where it ...
0
votes
0answers
3 views

Access the Sequencer's current frame number in Material Editor

Is it possible to access the current frame that the sequencer is on? I want to use it instead of the "Time" node in the Material Editor. I need to create a foliage wind effect that loops at ...
1
vote
1answer
260 views

Google's Play Asset Delivery Build aab File in Unity too large

I want to upload an aab file from my unity project to my play console account, but unfortunately, my file was rejected because it's size is larger than the 150MB threshold limit for aab on google play ...
1
vote
1answer
11 views

How to Correctly Declare Unity's New System Input as an Assembly Definition Reference

I have 3 main assemblies, Core, Character, and Interactable. Interactable and Character both depend on Core. I got an error saying I needed to add TMPro as a dependency for Core, so I did that, and ...
0
votes
0answers
20 views

GPU accelerated neural networks in games? [closed]

Motivation: Because neural networks, especially in the era of deep learning, are so computationally demanding, the vast majority of the performant deep learning frameworks rely on GPU acceleration by ...
0
votes
1answer
109 views

Implementing score relative to total game time

How would one create score dependent on total time in game? I would like the score to count by 1000+ each second the game is running for. Later I am going to add some coins which will give my total ...
0
votes
1answer
49 views
-2
votes
1answer
19 views

If I need help where do I go? [closed]

Where can I go to run new codes I have learned, I have tried surfing the web but no help.
0
votes
0answers
8 views

Disable UI button does not work when calling function directly, does when calling intermediate function that Invokes disable with a delay of 0

Trying to understand the Unity UI system. I have a panel that contains a button that should hide the panel. When I wire the button up to the method that hides the panel, I can see in the console that ...
0
votes
1answer
37 views

How to make the automatic movement of an actor and control that it does not go off the screen?

I have an actor in a class who then I put him in the main scene, but I want the actor to move randomly, that is, now he moves to the right, then down ... but controlling that he does not leave the ...
0
votes
1answer
1k views

Tile draws pixels from adjacent tiles

Whenever I try to draw from the tile palette, this is the result. why does this happen? I have tried messing around with the palette, how the sprite editor has sliced the tiles and played around with ...
0
votes
1answer
46 views

LibGDX - Actors added to a stage from a network thread are not drawn

I have an application with several Screen and Actor. On my main screen, the actors added to the stage during creation are ...
0
votes
1answer
40 views

Level Creation - How to achieve seamless race tracks?

I'm aiming to make a racing game in Unity. Please take a look at the image provided below, and suggest me the best technique to achieve something like it. (Keeping the performance as optimized as ...
0
votes
0answers
13 views

How to make golf putter rotate to ground normal's and still rotate with the handle

I am making a vr golf game and I am trying to get the putter to be level with the ground and still rotate with the putter handle. The two pictures below will demonstrate the problem. Then after I ...
0
votes
0answers
33 views

Automatically create capsule colliders from bones?

I have tried to automatically generate capsule colliders from bones by temporarily creating a mesh collider and using raycast to find the distance to it from the bone, but when I create the capsule ...
1
vote
0answers
19 views

How to solve for the angle of a axis/angle rotation that gets me closest to a specific orientation

I’m using a 3D affine transform (a 4x4 matrix of floats) to represent a combination of translations and rotations in 3D space doing a sort of 3D turtle graphics kind of thing. From this state I know ...
0
votes
0answers
12 views

How can I change the body type from dynamic to static in the middle of a game in Box2D

I am trying to change a body type from DYNAMIC to STATIC just when it collides with other bodies. I am using Processing IDE and I tried "p1.body.setType(BodyType.STATIC)" in the beginContact(...
0
votes
0answers
9 views

Making a simple custom animation in Maya for use in Unreal

Ok so I thought this would be a simple task but in the end I am very confused. I am trying to learn to make some game assets in Maya with custom animations I would make inside Maya and import into the ...
0
votes
0answers
13 views

How would I add a new custom ore to the Nether in Minecraft?

I have already created my ore, and configured its loot tables to drop what I want. Now, I just need to add it to the Nether in certain biomes. I have been adapting my ideas from the fabric wiki (...
1
vote
1answer
41 views

How do I get the consistent time it would take for two points to reach each other in circular motion?

I'm making a 2D game. It involves the player swinging around a grapple hook in perfect circular motion, however, I want to make the cooldown for this ability based on predicted end position for the ...
0
votes
1answer
283 views

when to unbind vao in drawing loops

I am very new to open gl and am struggling to understand relation between vaos vbos and ibos like how is currently bound vao related to currently bound ibo? now i am trying to render 4 triangles with ...
0
votes
0answers
13 views

Godot imported texture becomes black at some distance until editor's restart

Godot 3.4. I have some model with shader. I am using texture there. When I place images into project's folder they appears in editor file system window. Then I drag one from there and drop to shader ...
1
vote
1answer
1k views

How to leave a permanent skid mark on the ground in Unity2D?

I am working on a 2D driving game. I have a sprite of a car and I set the car movement. Now I need to create a skid mark on the ground. For that I have created an empte game object and added a Trial ...
0
votes
1answer
22 views

Unity approaches for automatically setting pivots of each sub-gameobject at base center

I'm working with some free models online, which don't seem to have pivots properly set for any of its submodels. Is there a universal pivot fixer or something if not... The center seems correct for ...
0
votes
0answers
13 views

How to randomly accelerate particles in a tangential direction, both positively AND negatively?

"tangential_accel_random" will only ever apply positive numbers to my particle acceleration, as far as I can tell. How do I change this?
1
vote
1answer
40 views

Are there feature/performance/platform limitations when using the Mono/C# version of Godot?

I've read through the Godot page about differences between the C#/mono version and the standard version (gdscript), and it primarily seems to be focused on the fact that C# is a different language ...
0
votes
0answers
27 views

What causes Rigidbody character to suddenly move at fast speeds?

I'm trying to make a Rigidbody-based movement script for a character. It behaves pretty much as expected, but every once in a while the character will suddenly run at a massive speed. I can't find a ...

15 30 50 per page
1
2 3 4 5
1064