# All Questions

45,405 questions
37 views

### Using Minimum Translation Vector in SAT algorithm

I am working on a simple rigid-body physics engine ,I've already implemented SAT algorithm for collision detection and everything works fine, Now i get to step to use MTV to calculate the distance ...
21 views

### Restrict Trajectory on Z axis

I have a cube which I select on mouse and point out the location to throw the cube with trajectory dots. The code is working fine, but I need to restrict the trajectory dots position on z axis so the ...
22 views

### Screen Space Reflections: Artifacts problem

I'm trying to implement a simple (so far) screen space reflections shader. Below is my code: ...
11 views

### Pinch in zoom in android

In My layout parent as Relative layout and then am having Scroll view inside Linear layout now am having child views as Image view Text View Web view and Recycle view and 2 buttons is there now i ...
49 views

### Assigning relative force to a projectile fired while orbiting a sphere

Projectile Not Correctly Inheriting Parent Velocity (Unity3D) So I am trying to incorporate the above person's changes into a script I am making although I'm no great coder and I'm not even sure ...
16 views

### Error detecting collision with another instance of the same actor?

I have a project where after a certain time interval 2 NPCs are generated in different locations on the map. Each of them collides with a collision box that defines its "class" (red or blue): When 2 ...
40 views

### How to change the speed of an NPC?

I created a blueprint. I added several components to the blueprint. I made it follow a target point and it does it correctly. I'd like to make the NPC make this way to the target point faster, but I ...
13 views

### Unity3d : Access the OnClick parameters of Button in a script

I have a button and I have attached another script "PlaySound" for this button, which plays audio on button click. As soon as the audio gets completed, I want to ...
62 views

### Minimal, unrealistic physics engine

I'd like to prototype a game with custom, very simple physics. Something similar to older games, anything from Super Mario to Quake 3 Arena. I'd prefer to avoid realistic physics engine because they ...
110 views

### Why is the equation $S = ut + \frac 1 2 a t^2$ not used directly to calculate final position of an object?

Most articles I've read on physics integration in games say to do it like this: first we calculate velocity after a certain elapsed time dt like this: ...
38 views

### Add force to objects while inside area

I'm currently trying to create an area that would somehow push objects to a specific direction. (and also apply angular drag if possible) I'm currently new to Unity and Godot. I have already seen ...
169 views

### How to avoid minecraft-like map to blend

I am making a minecraft-like world, with some differences. For instance, the camera will be facing always in the same direction. I am having trouble with the visuals. Here is an example: As you can ...
89 views

### I see free asset being sold on another site. How and where do I complain? [closed]

We all know that there are many repositories and marketplaces for 3D models on the internet. The specific problem I have now is with this 3D asset for sale on a site. It was made for sale a short ...
17 views

### How do we convert a pex file to a psc file?

How do we convert a pex file to a psc file? https://skyrim.nexusmods.com/downloads/file.php?id=2909 There used to be a file here that allegedly converted pex files to psc files, but it's no longer ...
49 views

### How does a minecraft biome finder generates map

How does chunkbase biome finder generates map base on seed? I was curious if chunkbase knows the secret formula for generating the map? Or it uses other math formulas such as scaling, mapping etc... ...
33 views

### How to call animation event from another GameObject

I have an animation event but I want it to call a function from a script that is attached to a different GameObject that I'm not animating. Is this even possible?
58 views

### How to Set PlayerPrefs.SetInt?

playerpreferance.setint problem I am develop one game.In this game 15 levels. I am face this type of issues when send one level score into second levels. I am used player preferences in start() ...
26 views

### Using different referenced libraries for different build configurations

I use MonoGame Content Builder and I have some Content Pipeline Extension libraries referenced in the Content.mgcb file. They are referenced like this: ...
15 views

### Does collision detection data structures require a manifold mesh

Is it possible to apply spatial split techniques (oct-trees bsp-trees, etc) when meshes are not necessary manifolds? The mesh in question represents the "map". This means that it is static so spatial ...
18 views

### Rigidbody2D moves on x axis without adding force

I'm currently trying to learn some Physics2D in Unity. Now, I've created a Ball (sprite) and added a RigidBody2D and a CircleCollider2D on it. The RigidBody2D has the following settings: Bodytype: ...
16 views

### UDP vs. TCP for a click-based game [duplicate]

I'm contemplating transport protocol for a real-time click-based multiplayer RPG-style game. User clicks on the ground -> character walks to position and holds User clicks on an item -> character ...
51 views

### How should a 3D map be stored?

I have an array of 3d vertices, Vertex3D[][] ground; so for each element in the array, I have an array of three 3D vertices, a triangle. But this means I cannot ...
21 views

### Unity Events executed out of order

According to this page Events in unity are suppose to execute in a specific order. Specifically, OnCollisionEnter is supposed to be called right after OnTriggerEnter; however, FixedUpdate and Update ...
25 views

### Should I use a FOV slider or fixed camera fov?

I'm making a single-player third person 3D adventure game, and I was wondering if I should fix the camera's FOV, or if I should create an in-game slider to change it. If I should create a slider, what ...
15 views

### Creating a new HDRP example scene after upgrading Unity project

When a new game is templated using the HDRP template, there's a nicely setup sample scene with post processing volume and many other settings. I have noticed that Unity changes quite a lot in their ...
51 views

### rotation matrix problems - opengl and own types

In an effort to learn things deeper I'm writing my own mathematics for the first time instead of using libraries. As far as I can tell my matrix multiplication is correct, and translation and scaling ...
34 views

### Unity 2d Animation from spritesheet: How can I move the character according to the animation?

I am trying to implement an attack animation that should end up in moving the player by some distance. The animation would be something like this: As you can see the position of the player should ...
22 views

...
12 views

### how can I make the gun (gun1.png) shoot towards the mouse's position (pygame 2D) [duplicate]

here´s the code: import pygame, sys import math clock = pygame.time.Clock() from pygame.locals import * pygame.init() # initiates pygame pygame.display.set_caption('Pygame Platformer') ...
71 views

### How do I wrap my web browser game as a standalone for Steam?

I've got a PHP/Java based game, which runs in the browser. However, I want to submit this game to Steam. Now Steam doesn't allow web-based games unless they come in some kind of wrapper. How can I ...
17 views

### Magicavoxel export to Unity offcenter

I am trying to export an object from Magicavoxel to Unity. I have exported it as an obj file and dragged it into the scene, but it is completely off centered ...
21 views

### Ship Banking Animation - the best way?

So I am learning Unity right now and am making a standard space shooter. Im at the point where I am trying to make my ship look like it is banking left, right, forward or back and have a few ...
11 views

### How to match user drawing with predefined drawing model?

i am trying to develop image recognition iOS app , i will have one reference image , and user has to draw something one screen and when user release finger , then i will convert his drawing into <...
34 views

### *Python* Class - self.x = self - What does it mean to set it to self?

I have this class for my game that is a scene manager. I followed a tutorial and I am confused on why the self.scene.manager is equal to self ...
12 views

### Prevent Wall Clipping with Bouncing Shape

I'm currently working on a demo-type program involving bouncing objects. Currently, I have a rectangle that can bounce around the screen. When the rectangle bounces against one of the walls ...
17 views

### How can I make the image of the gun turn in its place? [duplicate]

how can I make the image of the gun (gun1.png) turn in its place pointed to the mouse, This is the code ...
67 views

### Can games be made with Win32 for Windows 10?

Based on the news today of Microsoft allowing Win32 games on the Windows store, what does it mean that Win32 can be used for games now? Couldn't Windows 10 already play Win32 games? or is this ...
47 views

### Procedurally placing buildings on noise-field

So, I have a procedurally generated planet. In my case it's 3D (hexagon/pentagon globe) but for simplicity let's assume it is a 2D grid. I have distributed resources over this planet, using Simplex ...
74 views

### help with shooting projectile along a curve path

so i been trying to find a way to shoot projectiles along a curve path . and i found this tutorial on youtube which was really good. i also uploaded the project in case you wanted to check it out. ...
19 views

### Approach to storing multi-cell-objects on a sparse Grid (Example: Buildings in Anno)

I am currently working on a citybuilding game and planing on how to store buildings on the map. In previous projects I used either a grid where each Object was exactly 1 cell; or Unity Objects ...
9 views

### Do meshes marked “shadows only” require light maps to block light?

I want to use an .fbx mesh to block light from entering a room (except for holes cut for windows). The mesh itself must stay invisible. I know marking it "shadows only" will hide it from the camera, ...
19 views

### Bullet Physics StepSimulation really slow when smaller TriangleMeshShape is inside bigger BoxShape

I observed that bullet physics StepSimulation is very very slow when a rigidbody with a TriangleMeshShape is fully inside a rigidbody with a simple BoxShape. I noticed that when I move the ...
39 views

### Objects are stumbling in place continuously. How to fix that?

I have a nasty problem with my physics engine. Objects sometimes just jump in place, or roll left and right. Main game loop works in that manner: Every living object is updated (it changes velocity, ...
16 views

### Unity3d OverlapSphere and raycasting problem

I have a grenade (rigidbody) which make a spherecast when it detonates. On each found colliders, i will make a raycast to check if it is visible to the grenade or not. ...
10 views

### Need information concerning multiple file extensions used by Krome

all. I have been attempting to work on a mod for Star Wars: The Force Unleashed, but of course, in order to do so, I first have to figure out where all the files are placed and how to get to them. So, ...
21 views

### Unity Third Person Controller Camera-Relative Script

I'm an newbie in game developing. So i have a script for a camera that i attach to the player. I was wondering how to make a Third Person Controller with WASD controls that moves in the direction that ...
9 views

### Pands3d. Get value of texture under mouse cursor

That's quite straitforward. While creating a technical demo, i encountered a problem, where i need to know color of textures under mouse coursor. As i see it, there must be a function to transform ...
49 views

### How to stop switching between paths to a moving target?

I've noticed after implementing A* pathfinding into my game, that there is exploitable/unrealistic behavior that goes on when the player moves between two nodes that alter the path of the AI trying to ...