0
votes
1answer
34 views

UNITY IEnumerator Function

So I am currently using the IEnumerator function to pause a for loop, the for loop that contains a ball that should move to another game object. Currently from my print statements seems like the ball ...
-2
votes
0answers
38 views

Cost: Game design document [on hold]

An investor sent me an email with some informations about a game he needs. The problem is that he want a game design document from me (for a big project) to create all the game from his basic idea. ...
0
votes
1answer
32 views

I cant get my interface to work

This is my first time using interfaces so I imagine I'm doing something dumb. I have an interface called ILoadable inside ILoadable.cs; using UnityEngine; using System.Collections; public interface ...
0
votes
1answer
45 views

c# list that contains more then 3 lists [on hold]

How to create a list that contains more then 3 lists. If those lists change the "bigger" list that contain them also changes. public List<Rectangle> CoTree,CoRock1,CoRock2; public ...
1
vote
1answer
40 views

unity3d - Instantiate and fire bullet realtive to player rotation in 3D

This is a top-down view but in 3D coordinates, I would like to instantiate and fire a bullet from the player's gun. This script is on a spawner object at the end of the barrel. Also tried putting the ...
2
votes
0answers
24 views

Physics: calculating angular acceleration in world vs local space

I have a pretty simple rigid body simulation written in Python. In my code I calculate the angular acceleration using formula: angAcc = torque * inertiaTensor^-1 (note row-major matrix order) Now, ...
1
vote
0answers
45 views

Transformed Vertices have wrong Z Axis

For quite some time I've been working on my open 3D game engine, to learn how this stuff works. You can see the full codebase relating to my problem here on GitHub. I'm using an OpenGL 3.3 Core ...
3
votes
2answers
117 views

How do I create a toggle button in Unity Inspector?

I want to create a tool similar to Unity's Terrain tool, which has some nice toggle buttons in the inspector: How can I achieve similar design to this? I know how to create normal buttons and ...
1
vote
1answer
27 views

main camera not covering whole screen in unity3d

I have been using unity and i got a problem where my main camera is covering only the first half of the floor i made. camera position is left and the floor is rotated ,i m posting an image please help ...
38
votes
1answer
2k views

Making a night scene without being dark on the monitor

What would be a good way to make a 3D scene look "like" a dark night, without being so dark on the monitor that it's hard to see stuff (especially when playing in a brightly lit room). I've been ...
0
votes
0answers
51 views

OpenGL Diffuse Lighting Issue

I seem to have a problem in my OpenGL scene where if I (the camera) am looking at an plane it's brightness changes depending on what angle I am to the plane. It seems as though the camera is a source ...
0
votes
1answer
24 views

Trouble drawing repeating and scrolling screen elements from a 2d array for an endless runner in swift [on hold]

I've been trying draw level segments for an iOS endless runner using 2d elements that repeat forever. I have a class that generates a random 2d array, then scene elements are drawn and animated to ...
2
votes
1answer
23 views

How to offer directional ambient audio

I'm working on a game side-project that will be heavily audio-based. One feature I'd like to offer are ambient sound zones which correspond to locations of nearby areas. Say for instance the player ...
0
votes
0answers
20 views

Collision between a sphere and a mesh(height-map)

I am trying to implement a method that detects the collision between a sphere and a mesh and reflects the vector of speed. I have a method, that detects a collision between a sphere and a triangle and ...
2
votes
2answers
41 views

Updating game objects already placed in scene

I have about 20 game objects placed in certain positions in my scene. I then realized i need to attach two additional game objects to each one of these as children. Is there a simple way of doing ...
4
votes
1answer
234 views

Does vector transformation order matter?

Theoretical question - imagine a car object. There are two (or more) 'forces' acting on this car, these forces will affect where the car will steer. But the forces are calculated using car's location ...
0
votes
0answers
56 views

Making a command line in C# [on hold]

I was wondering if there was a way to code a command prompt type thing (CMD) for Unity in C#. I am making a hacking type game and tried but failed.
1
vote
1answer
36 views

Shader - Convert vector into scalar

I am trying to convert a half3 as a simple half but I am facing an issue. As for an example half3(1, 0, 0) give me white but half3(0, 1, 0) gives me black. How can I convert properly a half3 to a ...
0
votes
0answers
27 views

Team Fortress 2 keeps crashing on OS X [on hold]

everytime I start the tutorial of Team Fortress 2 it keeps crashing while trying to play the movie. This is the crash report: http://pastebin.com/GuT0zxEs Thanks for your help! Kaes3kuch3n
0
votes
1answer
62 views

Body isn't moving even even though linear velocity isn't 0

In my game you have the Square, which is the player, and the Circle which is the enemy, the player carries a weapon, when shooting the game calculates where to place the bullet in relation to the ...
0
votes
0answers
21 views

Implementing Spine animations in Libgdx

I've been searching a lot for a guide on how to implement 2D animations exported from Spine to Libgdx, but all I could find was outdated tutorials and source codes. I can handle basic Libgdx but Spine ...
1
vote
0answers
46 views

Improving performance for flocking behavior?

I have a game that I am trying to make. It is a twin-stick shooter that I want to design to have a LOT (Up to 500) of enemies on the screen. The game's base design comes from that of Geometry Wars, ...
0
votes
0answers
15 views

Specify Vertex Quality in OBJ File

I've got a program that prints OBJ files in the format # x y z r g b format opens with MeshLab only (http://meshlab.sourceforge.net/) v xVal yVal zVal rVal gVal bVal v xVal yVal zVal rVal gVal bVal ...
0
votes
1answer
57 views

Sharing Tiled Maps [on hold]

Where can share my existing Tiled maps, as well as download and use other people's existing maps?
0
votes
1answer
16 views

How to use Cocos2dJS to connect to a Socket.IO server?

How can I connect to a nodejs socket.io server from a cocos2djs game? I've google all the way to no avail. I tried this but it does not work: socket = io.connect('http://192.168.254.102:7714'); if ( ...
0
votes
3answers
49 views

Problems Animating Texture in OpenGL

I'm trying to animate a texture to scroll a static screen for a television, however I'm having some issues. Just translating within the texture matrix animates all textures in the scene which is ...
1
vote
1answer
54 views

Turn the front wheels of a car according to the car's bezier path

I have a 3D car which follows a predefined 3D Bezier path. I want the car's front wheels' rotation to match the car's changing direction. I had the idea to match the wheel's orientation to the ...
1
vote
1answer
25 views

Model texturing not seamless at certain zooms? (C# XNA)

I found a very odd glitch with my game this morning. XNA doesn't render certain textured models properly, while other models are completely unaffected. And it's not even like my models are made ...
1
vote
3answers
81 views

How does Unity call “update()” in the scripts?

I understand that you can expose your C++ code to a scripting language such as ChaiScript. From this you can call code that you've made in C++. In Unity, however, they have functions in the script, ...
-2
votes
0answers
23 views

OnTakeAnyDamage will not trigger(LOCALLY!) [on hold]

Im damn trying to simply use a damage event and make my actor receive damage!i tried everything!and simulations of damage and events of damage and everything!all tutorials and examples and questions ...
-1
votes
0answers
31 views

How to access lan in Java? [on hold]

I'm making a text based game in Java. It will run on the school computers so please tell me of any conflicts that are possible. But I need to have a client and server in one package. They can create a ...
0
votes
1answer
50 views

Depth Stencil Buffer

In OpenGL, what is the difference between GL_DEPTH_COMPONENT and GL_DEPTH_STENCIL? I have looked around and have been unable to find a clear explanation. Information on their usage with GLSL would ...
7
votes
2answers
914 views

Pausing the game inside the game loop

Inside the game loop, the game is paused by pressing P, meaning that the game loop does not run anymore. Problem is that after this loop is halted, P cannot be pressed again to resume the loop, since ...
0
votes
1answer
17 views

Trying to get reference to Button in Javascript Unity3d

I've this simple script in Unity3d: #pragma strict public var topLeft : UnityEngine.UI.Button; public var topCenter : UnityEngine.UI.Button; public var topRight : UnityEngine.UI.Button; public var ...
0
votes
0answers
23 views

Is it reasonable to generate mipmaps on the color attachment of my framebuffer in realtime?

I'm looking into hdr tonemapping and so far all the equations I've found result in really, dulled results. One i haven't tried uses an average luminance of the image. The pdf I've been reading ...
0
votes
0answers
20 views

error in post a screen shot of game scores with Android Intent in LIbgdx game

I want to post a screen shot of my game on social apps. I have developed this game using Libgdx framework. I have created an interface in Core class. Here is its Intent share specific code. ...
4
votes
2answers
58 views

Body lost a velocity component when hitting a wall

I am creating a Breakout game using Box2D (of LibGdx if anyone interest). Everything works well until when the ball hits the wall when moving with a very small angle. Please look at the image for ...
0
votes
1answer
54 views

Targeting the last thing that shot me [on hold]

I am working in Java on Eclipse I am attempting to make a code that will target the last place the player was at in a 2D enviorment. Once the enemy is hit it will then charge that location 2 seconds ...
0
votes
0answers
37 views

Implementing wall-sliding physics in THREE.js

Yo, Basically I want to make a 3D environment where the player can walk around a 3D world, and collides with objects / terrain like any other 3rd person / 1st person game. The world can contain any ...
1
vote
0answers
36 views

Calculate Orbit Path/Ellipse given mass, velocity, and distance (2body)

Calculate and draw the path of an orbit in a 2 body problem given the mass, current velocity, and distance of both bodies? We're working in Unity and will be using the default rigidbody.mass to start ...
0
votes
1answer
45 views

How do I use rigidbody2d.AddForce to apply a force in the direction the object is facing?

I'm trying to create a thruster on a spaceship. It should add this thrust in the direction the thruster is facing, but I am at a loss on how to get that direction and send it to AddForce. Am I even ...
-1
votes
1answer
13 views

Easy SpriteKit question on creating a function

The following code is what I'm working on to animate characters in a SK scene class. I can run the code without building, no problem, but I can't build it and run it; I get one error message: Binary ...
0
votes
1answer
52 views

Handling input with callback functions

I'm not sure if I understand callback functions completely - they are functions that another function calls? This seems like a powerful tool, especially w/r/t handling input. I've written up this ...
0
votes
1answer
32 views

How, if possible, do you add loop cuts to models in real time?

I am working on a prototype for a very low poly game. I can't figure out a way for a player to cut or break objects in real time without predefined fractures. For example, if a player cuts a tree, it ...
4
votes
1answer
50 views

Why does my Outlined Diffuse 3 shader seem “detached” at a distance?

I'm using the Outlined Diffuse 3 shader from Unity and I'm having a problem with it: the outline looks great when the camera is near the object, but at a distance, it looks detached. From nearby ...
0
votes
0answers
34 views

Monogame 3.3 SoundEffect play Freezes

After using Monogame 3.3 with Xamarin Android, SoundEffect.Play method freezes the game. I try to convert wav files 8bit mono, 16bit mono no changes. This error on Samsung T101 android 4.0.3 but ...
0
votes
1answer
80 views

How do I make an entity move dynamically based on the player? [on hold]

I have an Entity instance and an Player instance, both have x and y coordinates in the game. The entity shall dynamically follow the player according to its coordinates. I immediately tried using ...
1
vote
1answer
56 views

Question regarding irradiance

I know that the formula for irradiance at surface point p with normal n given a point light source at position l is: H = I(cos x) / ||l - p||^2 Where: x = angle between n and l-p I() = Intensity ...
2
votes
2answers
41 views

Unity: Editing a DontDestroyOnLoad object in another scene

I figured out how to make certain objects like my Camera and Canvas persist across scenes, but I can't figure out how to access them in the editor from scenes in which they're not instantiated. I can ...
2
votes
2answers
82 views

AI for Shogi, dealing with high branching factor due to drop rule

I'm writing a Shogi program with a computer player in Java from scratch as my undergradute dissertation project. Due to the drop rule, when the computer player captures a few pieces, the branching ...

15 30 50 per page