939 reputation
419
bio website ccoder.co.uk
location
age
visits member for 2 years, 11 months
seen Apr 20 at 15:06

I first got in to programming for a hobby, then it led to a career, now it's just an excuse to make a mess in my head.

Strangely though its easy to get addicted to the mess.

So here I am, confused as ever, asking questions.

You can't know it all though, something's gotta give ;)


Apr
18
answered Drawing a pixel to RenderTexture
Apr
10
awarded  Cleanup
Apr
10
revised How to find damage per second using Average Damage, Accuracy and Fire Rate Per Second?
rolled back to a previous revision
Apr
10
revised How to find damage per second using Average Damage, Accuracy and Fire Rate Per Second?
rolled back to a previous revision
Apr
9
answered How to find damage per second using Average Damage, Accuracy and Fire Rate Per Second?
Mar
29
answered How to create planets
Mar
28
answered Character on spherical terrain
Mar
23
comment How does a loop work in game engines?
Not all engines work that way, for example in unity there's a difference between update and fixedupdate and draw in terms of timing which my answer covers. You want to draw as many frames as possible but you only want to update certain components based on fixed steps. The whole application does not work on a fixed step timing.
Mar
23
comment How does a loop work in game engines?
Best advice I can give you is to start by building some games in engines that already have the looping handled for you. Once you get your head round the timing issues associated with building stuff "per frame" you can then work up to building your own game engine. It's a massively broad topic.
Mar
23
answered C# Unity3D FPS apply damage to an enemy (Weapon bullet)
Mar
23
comment C# Unity3D FPS apply damage to an enemy (Weapon bullet)
Would it not make sense to just declare a Healthbar monobehaviour that tracks the health of a game object its attached to? then yes you are correct you need to handle a collision with say weapons / projectiles and basically do what you are already doing.
Mar
23
comment C# Unity3D FPS apply damage to an enemy (Weapon bullet)
pew pew, pew pew!
Mar
23
answered How does a loop work in game engines?
Mar
18
answered Learning To Use C# In Both VisualStudio And Unity's Monodevelop Frameworks
Mar
18
comment DirectX 11 - Get the world matrix of my camera
@Alesso read up on scene graphs you'll be needing to use one soon i'm sure. Glad to hear you solved your problem though.
Mar
18
comment DirectX 11 - Get the world matrix of my camera
or make the camera a parent of the sphere so when you set the camera pos the sphere moves with it (thinking about typical scene graphing)
Mar
18
comment How to animate objects with bobbing up and down motion in Unity?
Hey Caspert between you and @pip you basically have the bits you need to solve this now, simple enough right?
Mar
18
comment How to animate objects with bobbing up and down motion in Unity?
use a sine wave to determine the amount to move and the direction per frame and adjust the y pos on your floating object ... assuming y is up and down. This question is so vague that's about the best I can suggest without clarity.
Mar
16
comment Material optimization in Unity3d
Basically you are creating a material for each tile when all you need is 1 material for all tiles. My answer gives you that by allowing you to build a mesh with lots of tiles then for each vertex (tile corner) you can specify the texture part to use of that 1 shared material.
Mar
15
answered Material optimization in Unity3d