Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 107276

3D refers to three dimensional space where coordinates are represented with X, Y and Z values.

3 votes

In a modern game engine, what parts of the rendering process needs to be handled by the CPU?

With modern rendering APIs, one of the main ways that the CPU remains involved with the rendering process is with draw calls. The process that you've described of passing rendering parameters (such as …
Kevin's user avatar
  • 6,946
1 vote

Unity3D multiple objects user rectangle selection

The tricky part would probably be converting the 2D box drawn by the mouse into a world-space 3D box. …
Kevin's user avatar
  • 6,946
1 vote

How to calculate a direction that will turn a parent so that a locally-rotated child is face...

Your answer leaves out the step of actually applying the direction-to-aim to the parent. Depending on how you use directionToAim, the parent (ship) might roll (stop being upright). A slightly simpler …
Kevin's user avatar
  • 6,946
0 votes

Mesh shaded as single pixel

I can even get it to work on a sphere, but only on one I created manually by doing new 3D-Object - Sphere and then applying the shaded material to it. …
Kevin's user avatar
  • 6,946
0 votes
Accepted

Character Controller and Reverse Gravity

The problem is that the velocity.Y when the gravity is reversed , keeps increasing to the infinity. That's what your code tells it to do: velocity.y += gravityScale * globalGravity * Time.deltaTime; …
Kevin's user avatar
  • 6,946
1 vote
Accepted

Creating a Full Stadium of People, Ready as a Game Asset (ie. not too CPU intensive)

In answer to one of your comments: I actually have the same question, but regarding the seats in the stadium. Would it be better to make them in maya (all of them) or is it better to import just one …
Kevin's user avatar
  • 6,946
1 vote

How do I fill a scene with light by using real-time lights in Unity?

You can adjust the ambient lighting of the scene from the Lighting Window in the Unity Editor. Ambient lighting is present throughout the scene and doesn't come from a specific light source; it's an i …
Kevin's user avatar
  • 6,946
1 vote
Accepted

Unity3D - Despite using Time.deltaTime, my camera and player move faster at higher framerates

Time.deltaTime is not always 100% accurate. It can sometimes be slightly off if the framerate is extremely high or low, or if you have modified Time.timeScale Movement is usually better handled in Fix …
Kevin's user avatar
  • 6,946
1 vote

Position sprite vertices in 3D to conform to terrain

It sounds like you should just rotate the sprite instead of manipulating individual vertices. We can easily do this using the normal vector. This code should accomplish what you want and only needs th …
Kevin's user avatar
  • 6,946
2 votes
Accepted

What specific lighting property creates "the unity look"

Personally I wouldn't say that there is a universal "Unity look"; see games like Cities: Skylines, Battletech, Dave the Diver, and Mechanicus for examples of different visual styles in 3D Unity games. …
Kevin's user avatar
  • 6,946
3 votes

Why does everything I've made in Unity begin to vanish when I get close to it?

In Unity 2021.3, you can adjust the clipping planes for the Scene view like this: In the Scene view, click the Camera button Deselect "Dynamic Clipping" Edit the Near and Far clipping planes as need …
Kevin's user avatar
  • 6,946
1 vote

How to Improve AI Decision-Making Between Chasing, Hiding, and Movement Speed

Reinforcement Learning You have not implemented Q-learning correctly. You're incrementing a value but not doing anything with the value. Additionally, Q-learning is a type of reinforcement learning, w …
Kevin's user avatar
  • 6,946
0 votes

How to handle player slowness while moving up and down in a Top Down game with angled ortho ...

If the tile is sqrt(2) times taller than wide, then multiply z-axis motion by sqrt(2)
Kevin's user avatar
  • 6,946
0 votes
Accepted

How would I detect a collision between a rigidbody and a static

Is there an event that gets fired whenever an object collides? OnCollisionEnter //Automatically fired when a collision occurs void OnCollisionEnter(Collision collision) { } This is something you c …
Kevin's user avatar
  • 6,946
0 votes
Accepted

How to implement a directional attacking/blocking system?

There's no single right answer for this. It depends on what works best for your game. However, there are some complications you may not have thought of when using an enum: Let's imagine two characters …
Kevin's user avatar
  • 6,946