All Questions

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

How to compute the origin/pivot point of objects in a hierarchy

I'm sorry if the title is bad, but i'll try my best to explain my problem. Consider a simple hierarchy of objects (Object1 -> Object2 -> Object3) If i now were to rotate Object1 by 45 degrees in ...
0
votes
0answers
4 views

How to define tile size for 2d tilemap in Unity

I am absolutely new to Unity. Now I am developing 2D RPG gameplay in 3D project. So my goal is to let player move only on a fixed road. There is an image of a fixed map, so I am going to use this as a ...
-1
votes
2answers
37 views

3D image projected to 2D image

We know real world images are 3D.when we projects image from real world this image projects into 2D image where Z component is constant or zero. But when capture the below image which seems to 3D(z ...
0
votes
0answers
10 views

When creating a GDNativeLibrary resource, why isn't there an option for the web?

I'm creating a new GDNativeLibrary resource instance. Here's what the property window looks like: Where is the option for the web? Can I even use GDNative with the web export?
0
votes
0answers
19 views

Painter's theorem inside and outside test

I have read from Hearn and Baker computer graphics book. I read the test#2 painter's theorem which image is given below. This image showing surface S is completely behind the surface S', by checking ...
1
vote
1answer
39 views

Dividing amount of exp between rank A and B into a curve?

In my game I have a rank system. You start at rank A, and then you can level from level 1 to level 10. When you reach level 10, you get promoted to rank B, and you go from level 1 to 10 again, and ...
0
votes
2answers
45 views

How to make a singleton "game manager" object/class that only loads once and can be accessed from any scene?

I would like to have a single "Game Manager" game object or class that contains numerous parameters and tweens or other functions that would be necessary to access throughout my app across ...
0
votes
0answers
13 views

Aim assist-- How to cast a wedge in screen space

My character exists in a 3D, isometric, top-down world. I'd like to make an aim assist mechanic, such that when holding the right joystick in a direction the game will choose the enemy roughly in that ...
0
votes
1answer
19 views

Why clip in clip space - confusion with Gribb-Hartmann clip plane extraction

I understand to extract clip planes from the perspective matrix one can follow the methodology laid out by Gribb-Hartman as documented here: http://www.cs.otago.ac.nz/postgrads/alexis/planeExtraction....
0
votes
0answers
20 views

What are the tradeoffs I should consider when choosing how to track whether a GameObject is out of bounds? (Unity 3D)

The obvious ways are to either: OnTriggerExit for a box collider which wraps the stage bounds OnTriggerEnter for 6 flat box colliders surrounding the stage I suppose, to start, 6 flat boundaries ...
0
votes
0answers
28 views

Unity3d - Tile-based "Slippy" map rendered on a sphere (earth)

Scenario I'm creating a spherical version of a slippy map using osm tiles and my luck has been limited thus far. I'm starting to think my strategy has lead me astray and that I need to start from ...
0
votes
1answer
35 views

Extensible 2D Rendering with ECS Architecture

I am currently creating a 2D game/game engine using an ECS architecture. Currently I have a renderer_2d system which is a function that takes all ...
0
votes
1answer
55 views

I'm still not sure why the reverse state is not working?

The goal is to be able to change direction(reverse or forward) at runtime in real time without waiting the transform to reach the next waypoint first but at real time to change the direction/s. ...
-1
votes
0answers
22 views

HelloThis is error I getArgumentException:Objectoftype'UnityEngine.Objectcannot be convertedto typ'UnityEngine.Collider'.System.RuntimeType.CheckValue [closed]

using System.Collections; using System.Collections.Generic; using UnityEngine; public class NeeeeeeeeeewGather : MonoBehaviour { ...
0
votes
1answer
35 views

How to get / set value of a float2 field in a custom editor script?

I wrote this code: ...
1
vote
1answer
32 views

Snap joystick value to minimum magnitude when it falls below

I got a joystick displayed in the image below with range -1 to 1. Green area is 80% of the total circle and yellow area is 20%. I want to get corrected values for both areas. For example: If given ...
0
votes
0answers
29 views

Your Android App Bundle is signed with the wrong key

I get this error when I try upload my Android app bundle (made with Unity) for release on Google Play Console: Your Android App Bundle is signed with the wrong key. Ensure that your App Bundle is ...
0
votes
0answers
15 views

How do I fix this assembly not found (UnityLinker.deps.json) error while building to WebGL?

I'm building a project and this error appeared; it's the first time I'm building it to WebGL from unity. Any help is appreciated. ...
-1
votes
1answer
25 views

Creating custom editor fields based on presence of custom attribute

I'm creating a manager object that controls a bunch of other objects at once. I want to be able to restrict / expose parameters in the target object to the manager via a custom attribute. I have the ...
0
votes
0answers
8 views

How to create game server using Photon like SFS 2X

In SFS2X there is a user dashboard to upload the JAR file. The JAR file contains all the game logic. From Unity, I send a request to connect with the game server to play the game. How to do the same ...
0
votes
1answer
31 views

Getting XR Grabbable items networked with Unity

I'm trying to get XR Grabbable objects networked in Unity, with the networking framework Mirror. This should be a simple task as Mirror has a component called "NetworkTransform" that simply ...
4
votes
2answers
47 views

How to not cover up the Android/iOS top status bar (eg. with time, network/wifi icons) in mobile Unity app?

I am making an Android/iOS mobile app in Unity. Currently, when I build it and install it (for example from APK to Android) it loads completely full screen covering up the top phone status bar which ...
0
votes
0answers
25 views

Avoid clipping objects when looking at them close-up in the Scene view

I am making a game in Unity3D, but whenever I get about 5 meters close to an object, the camera acts like I am right by it and does not render part of the screen. Here is a screenshot: This is really ...
1
vote
2answers
25 views

How to have unity inspector variables modify each other bidirectionally and update in real time [duplicate]

Trying to make some inspector controls that both modify the same thing but in different ways, and I want them to both update when the other is edited. Won't bore with the details but there's a reason. ...
3
votes
1answer
68 views

How to protoype a multiplayer game whose fun comes from having lots of features

I've seen plenty of testimonies that to make a good game and not waste time, one should prototype early, quickly see if the core is fun as is, and not focus on graphics, menus, sound, secondary ...
-1
votes
0answers
29 views

College Project [closed]

I'm making a win scenario for a basic college project. I am trying to initialize some fireworks to shoot off when all checkpoints have been crossed. Error i'm receiving is CS0029 Cannot implicitly ...
-2
votes
1answer
24 views

Why I'm getting message in the editor console window , Look rotation viewing vector is zero?

Look rotation viewing vector is zero UnityEngine.Quaternion:LookRotation (UnityEngine.Vector3) Waypoints:Update () Why I'm getting this message and what should I do with it ? It's not a warning and ...
0
votes
0answers
56 views

1Bit Bayer Ordered Dithering Shader

I’m having a problem trying to fix my 1bit ordered dithering shader this shader is going to be perfect to be used but there is some detail that I would like to fix first of all, this shader is not ...
0
votes
2answers
45 views

What is the best way to make firetruck outriggers push firetruck up on specific corner

Unity3d Hello, I'm trying to recreate functionality of outriggers stabilizing a firetruck before the ladder is raised up. How would I go about making the downward force of the outriggers lift the ...
-1
votes
2answers
92 views

Collision detection between transformed meshes (not primitives)

I know questions related to collision detection have been asked multiple times, but I find all of them like this and this depend on the assumption that I have some sort of measurement of the object ...
2
votes
3answers
351 views

GM files in online mobile games: what type of GM file should I keep a local copy and how does it synchronize with server?

In mobile game development there are types of data that are not user save-data but are necessary for the game, we call it GM files. In my specific case, the GM files include text data such as "...
9
votes
1answer
3k views

How can I "zero out" velocity in an arbitrary direction?

I'm currently running into an issue with my character controller using physics-based movement of rigidbodies in Unity. Here's an illustration of the issue I'm facing: Basically, after a jump, my ...
0
votes
0answers
38 views

How can I draw gizmos only at runtime?

...
0
votes
1answer
29 views

How do I calculate a matrix to render a mirror about a plane using GLM?

I've been trying to work out how to render a mirror for a while now, but a lot of resources I find either use very outdated tools I'm not familiar with, appear to be college slides referencing other ...
0
votes
0answers
32 views

When I tried upgrading my project to a newer version of unity, then downgrading it to the original one, it gave me 3 errors having to do with sprites

So I upgraded my project to a newer version of unity because some dude told me that i could export my game (i couldn't). So I downgraded my project to my original editor version and it gave me these 3 ...
-1
votes
1answer
56 views

Extracting cell center and corner points from rasterized Voronoi diagram

I currently have this code which I copied from Rosetta code: ...
0
votes
0answers
16 views

Efficient dynamically modifiable terrain system [closed]

I want to create a nice terrain system for a mobile game, which I develop in Unity. The terrain needs to support dynamic modification at runtime, e.g. cutting out a block from the terrain when that ...
0
votes
0answers
15 views

Unity touch position infinity

When I try to get the touch#1/position [Touchscreen] I receive as value (Infinity, -Infinity) with the new input system of Unity3D My settings are Passthrough and Vector2 as expected value. The ...
-4
votes
0answers
36 views

How to re edit existing game [closed]

I just wondering if it okey to edit existing game, make it more alive, but I don't know how.
-1
votes
1answer
34 views

How do I create a method that adds a new sprite to the game?

I want to have a script in my game that adds a card. I am using a Card class for all my cards, so I don't have to make a prefab for each card. Instead I can do ...
0
votes
0answers
31 views

How to snap an object to an axis in 3D?

I have a script that lets player move a Rigidbody in my game with a mouse, and I want some objects to snap to other objects' axis (let's say guide) when they are near. So when an object is close to ...
0
votes
1answer
25 views

Give an opaque color to inner base of otherwise transparent cube?

This is my first time using a material in Unreal Engine. I am trying to create a transparent cube except for the inner face of the base, which I would like to be opaque white, like in this drawing: I ...
0
votes
0answers
30 views

Rollback netcode: how to avoid teleportation?

I've currently implemented rollback netcode with a central, authoritative server (wooh!). I'm running into issues where if players have zero input delay, the other players see them "teleport"...
-1
votes
1answer
33 views

How To Avoid GetComponent on raycasts and collisions

GetComponent() is suggested to not be used so frequently because it can cause a performance impact. I'm working on a game that needs to check the components of ...
0
votes
0answers
11 views

local to global additional rotation

An object has a rotation (α, β, γ) in 3D space, using Euler extrinsic rotation (x–y–z). This object also has an additional rotation (Δα, Δβ, Δγ) in local coordinates. How can this information be ...
-1
votes
1answer
27 views

Bullet Fire stuck on loop

When i shoot my bullet the unity explosion prefab keeps playing I have a gun Script ...
0
votes
1answer
18 views

How to remove the influence of a region of a texture, using texture stages?

I created a 512x512 shadow texture, and I don't want to render the center part on my Terrain. Can something like this be done? I didn't find anything on the internet about this (Example as in the ...
0
votes
2answers
31 views

How would I go about preparing my skybox for a z-up world orientation?

**Solved!** Special thanks to comments from Maximus Minimus and Jherico. Scroll down for the solution made in the shader. I am working on a vulkan renderer in rust using the ash crate. I would like to ...
0
votes
1answer
31 views

How to knock animated character backward when sword strikes wall

I was wondering how to make animation and physics interact. Specifically, I want to make it so when my character (rigidbody) plays a sword hit animation (swinging the sword in front of it), it makes ...
0
votes
1answer
44 views

Improving performance of lighting on mobile

I'm trying to make a 3D game for mobile. When rendering a very simple scene, my performance drops from 60 fps to 30 fps when I use fragment shader lighting instead of vertex shader lighting. I really ...

15 30 50 per page
1
2 3 4 5
1059