Skip to main content

Questions tagged [callbacks]

Filter by
Sorted by
Tagged with
1 vote
1 answer
441 views

I have a camera setup and I want to display a UI on it. I got a basic UI using UI toolkit shown below: So I have a keyboard button setup so that when the button is pressed a boolean toggles and turns ...
user25832's user avatar
  • 123
0 votes
1 answer
169 views

I'm stuck inside an Action : ...
Maifee Ul Asad's user avatar
4 votes
1 answer
2k views

Well, this sound ridiculous but the logic is escaping me. I have drawn my cube in OpenGL and I want to translate it to the right if any of the key on the keyboard is pressed. I know how to do this for ...
CN1002's user avatar
  • 179
2 votes
1 answer
576 views

Version: Unity3D 4.6.2f1 I have a grid of tiles (Cube GameObjects with a Tile script attached). They are positioned at their ...
Varaquilex's user avatar
4 votes
3 answers
2k views

How does Unity3D implement their system where if a class is derived from MonoBehaviour and has certain methods like Awake() or Update(), they are called accordingly? I want to do a similar system for ...
JPtheK9's user avatar
  • 2,031
1 vote
1 answer
3k views

I am looking for a way to avoid the dreaded switch or if/else scenarios between numerous game object types when a collision takes place in a game. For example: You have a list of game objects which ...
Red's user avatar
  • 13
1 vote
3 answers
14k views

I'm making a game Applet with Java that uses KeyListeners to control a paddle (for a game like Breakout/Pong). My basic implementation goes like this: ...
kikiotsuka's user avatar
4 votes
1 answer
320 views

I'm using Bullet and want to take some action once all objects in a dynamic world have reached 0 velocity (or at least a value that's very close). I was trying to iterate over all of them all the ...
sebap123's user avatar
  • 285