All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
31 views

Unity3d: Find a point on the line which has shortest distance from the third point

So, initially, I had points A and C. To get point B, I had to shoot a raycast down from ...
4
votes
1answer
208 views

Making a wrapping wire (like the Worms Ninja Rope) work correctly with moving geometry

I have implemented a 2D wire like the one described in this question which is made up of straight line segments between wrapping points. However, while the algorithms described in this answer work ...
0
votes
0answers
31 views

Double jump not working on rotated object

I am trying double jump from a platform. When the object is rotated, my double jump does not work. Here is my first attempt: ...
1
vote
0answers
67 views

Does 2D Platformer games still have popularity among gamers? [closed]

I'm currently working on a 2D platformer game that i wanted to put out as my first game but seeing the popularity of other games made by Voodoo and others are quite distressing and made me ask myself ...
0
votes
1answer
45 views

Unity my game starts in windowed mode, but the fullscreen box is checked

When I open my game the fullscreen box is checked, but the game is windowed. If I uncheck and check the box it will go into fullscreen. What is the fix? ...
0
votes
0answers
19 views

OpenGL Bump map issues

I'm using Core-Profile OpenGL version 3.3 and I'm trying to implement bump mapping. I'm loading the model thanks to assimp and adding 2 textures to the material one for the diffuse color and one for ...
0
votes
0answers
11 views

How to make scrollRect content bounce back if scroll threshold is not reached?

I have a scrollRect setup with two image(placed side by side) contents and everything works fine. But I don't want the user to be able to leave the contents scrolled halfway. What do I do to ensure ...
0
votes
1answer
139 views

Why separate data from logic?

I don't understand the purpose of separate SystemClass for functions. My composition looks like this: ...
-1
votes
1answer
66 views

how find Child using Tag

how find Child using Tag so i have find this solution ...
7
votes
6answers
3k views

Why am I not getting stuck in the loop

I'm new to Unity. I was learning coroutines and I wrote this. ...
0
votes
1answer
31 views

Unity: Bizarre Physics FixedUpdate Lag spikes

So I have this large forest of around 2M tris: Same chunk selected with view on the whole level: It's been generated within Blender and exported as fbx into Unity. Exporting each tree as an ...
0
votes
2answers
72 views

Is coroutine as good as a delay() function [on hold]

I'm new to Unity and I was learning the usage of coroutines. Is calling a coroutine as good as a delay() function? Does Unity have a delay() function?
0
votes
0answers
34 views

Unity IAP: How Can I Check For Completed In App Purchases Before I Display a Scene?

I'm new to implementing in app purchases. I'm also new in app development. I'm working on a Unity Mac app with multiple non-consumable in app purchases in a scene. I'm using Codeless IAP process. I ...
2
votes
2answers
787 views

What is the reason that people avoid PlayerPrefs to store character data and coins etc?

PlayerPrefs are easy to implement and i think it can be used to store important game data like selected character and coins and completed quests for small games, but i have read too much to make me ...
0
votes
2answers
78 views

How to decorate the floor with a grid?

I got this photo from mixamo.com — I want to draw grid lines similar to this on my floor. I'm sure this is easy by using textures, but I'm trying to avoid using textures as much as possible. Is there ...
2
votes
1answer
73 views

Unity how do I play an intro only the first time the player starts the game?

I have an intro animation scene in my game that I want to play the first time the player hits play from the main menu. How do I do this?
0
votes
0answers
18 views

Keyframe animation workflow

Been digging through the animation tools in Unreal, trying to find a direct way to set keyframes and edit animation curves on a skeletal mesh. It seems far more complicated than I expected, generally ...
0
votes
1answer
28 views

Combining mesh on the fly without using gameObject

I procedurally generate chunks and use the marching cube algorithm to create meshes in 3D. At first, I just created a gameObject for each cube (of course, I knew it was not optimized, but I wanted to ...
1
vote
0answers
57 views

Switching from software Engineer to Game developer [closed]

I don't know if this is the right place to ask this. I've been working as a software engineer for 3.5 years so far, mostly web apps, mobile apps, web pages in banking systems, educational, etc but I ...
3
votes
1answer
97 views

Interpolating between positions unfeasible at 30 frames per second?

I am working on a 3D platformer in Unity and I am targeting Android devices. The game consists of a lot of objects smoothly interpolating from the bottom of the screen to the top. This whole time I'...
1
vote
1answer
42 views

Reasons to not use Root Motion

Engine: Unity 3D tool: Blender Since the start of my game dev endeavour, I can't seem to decide on the type of animation system I want to use. Can someone please give me reasons why you would NOT ...
0
votes
1answer
49 views

Soft Body rendering from OBJ model

As part of my master thesis I have to do an softbody simulation. I 'm using Bullet Physics engine. I'm trying to render softbody, create from Meshes, with Shaders in OpenGL but the object doesnt ...
0
votes
1answer
48 views

Cube Movement Using Touch In Mobile?

I Just start a learn Unity. What i m currently doing I Want the cube up,down,left,right movement using touch?? cube up and down movement : but when i m comment a code left and right movement then ...
0
votes
0answers
22 views

How can I use StreamPeerSSL with Godot (server-side)?

I am trying to implement encryption for my game. The encrypted data will be handling authentication to the server and chat data. In order for StreamPeerSSL to work, I have to wrap it around ...
0
votes
1answer
41 views

Adding a profile to a dialogue box

I am trying to create dialogue boxes that contain the profile picture of the speaking character in them. As such, I want the profile pic to be attached to the object itself. If I understand this right,...
9
votes
2answers
3k views

Generate random number in Unity without class ambiguity

I have a problem in Unity (C#) where I would like to create a random number. I wanted to use System.Random (reference: using ...
0
votes
1answer
29 views

How to keep track of (count) vertices processed so far in GL ES SL 2.0 vertex shader?

I'm trying to learn how to use GLSL ES 2.0. In OpenGL ES 2.0, there is no gl_VertexID keyword to obtain the number of vertices processed so far. So I was wondering ...
0
votes
2answers
51 views

Best way to retrieve const data

My game uses big const data which i need to retrieve it to use data used on each level when its needed data security is important I got two options in my head which one is better? Note the data is ...
0
votes
0answers
20 views

2D Platformer AABB Continuous collision issue

I have a 2D Platformer game which i am making with SFML and C++. I created a collision system and the detection itself and resolving works fine. I am using AABB and i am storing all the collision ...
1
vote
0answers
17 views

Bullet Physics ignore collision from bottom

I'm currently using BulletSharp a wrapper for Bullet physics. I'm using Bullet Physics for a 2D project. Many platform games allow the player to pass through a platform as they jump upwards, and then ...
0
votes
1answer
72 views

How to implement arcade-style spawning?

In many arcade-style games with a horizontally scrolling camera, enemies spawn offscreen, either left or right, and traverse the screen in the opposite direction. Spawning enemies is easy enough, but ...
0
votes
1answer
23 views

Pause Tiled animation during game in LibGDX

I’m using Tiled with LibGDX and I have some animated tiles. When the game is paused I would like their animation to be paused as well. Is this possible? The map is drawn with ...
42
votes
8answers
7k views

How can I perform a deterministic physics simulation?

I'm creating a physics game involving rigid bodies in which players move pieces and parts to solve a puzzle/map. A hugely important aspect of the game is that when players start a simulation, it runs ...
1
vote
1answer
73 views

Dealing with more complex entities in an ECS architecture

Preamble: I'm working on a level editor for my engine, which uses an ECS architecture. I have around a dozen component types so far, mostly dealing with graphics, like lighting components, model, and ...
2
votes
2answers
108 views

Transparent sphere particles surrounded by squares when above/below water shader

I get this really strange effect in my builds, and only in builds, when particles intersect with/go under the water: Supposed to look like: I have no idea what to search for or what to look for, any ...
0
votes
1answer
31 views

Bullet prefab gets stuck to target after hitting

As the title says, I am having an issue with prefabs: I am trying to make a bullet follow a curve and then hit a target using this method: ...
0
votes
0answers
26 views

LWJGL 3 - problem with flickering when rendering terrain with colors

For while now I m trying to built a terrain generator for my game engine and again I'm stuck with problem. I'm trying to generate a terrain using colors, so no textures. In short my problem is ...
1
vote
1answer
25 views

Unity Pre Build Script - Add target dependent UI Elements

I wrote a postbuild script that deploys my builds to google drive. That works great, but when I tried to use the same type of logic on a pre build script, it fails. I'm trying to enable all game ...
0
votes
1answer
22 views

Do UV coordinates need correction for moving object?

The image above is a static capture of a dynamic OpenGL project I created in which I wrapped a NASA albedo, i.e., sans clouds, image on an OpenGL generated sphere. In so doing, I also generated the ...
0
votes
1answer
25 views

How To Find Child Object and set is own criteria/condition?

I am Making 2D Game. I Apply a Two Tag On Multiple Child Game Object.. Crate A Empty Game Object and Put Script Obstacle.cs and Rigidbody2d. Child GameObject -> Static OnTriggerEnter2D ...
0
votes
2answers
48 views

Unity get deleted scene back

I did something clumsy and seem to have deleted a scene and all the game objects in my unity project. I have the whole project under source control and so I think I should be able to get it back, ...
1
vote
1answer
17 views

Verlet chain with two fixed points is not converging properly

I am trying to create a simple chain between two fixed endpoints. The problem is that I can't seem to get the chain to reach a stable state. Further, the chain is always biased toward one of the ...
4
votes
1answer
103 views

How do I let people make Steam Workshop mods for my game?

I want to know how to make a game compatible with Steam Workshop. Basically, I want to be able to let players make mods for my game. Using Google, I keep finding tutorials for how to make mods for ...
2
votes
1answer
137 views

Why do games suggest you take a break?

A lot of games will suggest you take breaks from them every 30 minutes or so, I think this is especially common in Nintendo games, but they aren't the only ones to do it. What is the advantage to this?...
1
vote
0answers
7 views

How can I customize scrollbar sensitivity in editor property drawers in Unity3D?

A custom property drawer, in my Unity 2017.3 project, has code like this in its OnGUI implementation: ...
0
votes
0answers
24 views

Unity - Outline each pixel on a texture

So I have a 16x16 sprite. I would like to make each pixel on the sprite to have a border/outline so you can distinguish each pixel from another, like shown in the picture below (ignore the colored ...
0
votes
1answer
23 views

Unity3D: Move the parent gameobject relative to the child

So, I have X and Y game objects. I have a vector Z = X - Y which is indicated by the green line. Also, I have a ...
0
votes
0answers
23 views

Fade into scene in Unity / SteamVR

I am using this code below for a gradual fade into a scene/next level in Steam VR (HTC Vive) The whole idea is to cover up the scene loading icon which is viewable for 3-4 seconds, and the default ...
0
votes
1answer
97 views

Concerns about how to efficiently implement sprite atlas

I currently transform (translate, rotate, scale) a bunch of vertices in my own Java code, then populate an mPositions array and an ...
0
votes
0answers
23 views

Collision prediction of 2 moving objects

I have to 2 objects with Collider2D. Both objects are moving, in the very next frame they will either overlap each other or not. How to predict if they would ...

15 30 50 per page