navMeshAgent with rigibody (non-kinematic)
I have some basic cubes walking across a navmesh with navMeshAgents but they also have rigidbodies because i want them to be able to be pushed, or tossed around, then get their bearings and continue...
View ArticleIK aimer (imported from blender)
i made a pretty simple turret in blender, and it aims just fine in blender using an IK constraint. but once i import it into unity it doesn't aim when i move around the IK target. is there some setting...
View Articleaiming a transform on one axis.
this is a recurring mechanic for me, whats a good, fast way to aim at something along only one axis? as for right now i just use transform.LookAt() then zero out the 2 unused axis. this seems like a...
View Articleinput keeps resetting.
every time i close, then reopen my project, all of the custom input buttons i created in the input manager are gone. i did save before i restarted it, so i don't see why its doing this.
View Articlehow to make the cursor ACTUALLY lock
no cursor locking iv ever tried, or cursor visibility has ever done anything for me.. do they just not work when i'm running the game through unity, do they only work on full builds? cursor visibility...
View Articleanimation window, yellow text after moving Animation component
after moving my animation component for my character from his hands(don't ask, i don't know why i put it there) to the top of his hierarchy, all the animations have missing properties. they are all...
View Articlesize of a spherecast?
is a SphereCast's radius the same as a sphere collider's radius, if it where on a object with (1,1,1) scale? just trying to understand sphereCasts a little better, since there's no Debug.DrawSphereCast...
View Articlearray resetting after enabling a disabled gameobject
my bow script has an array of arrows with length of 3, the bow starts disabled; then when i enable it the array is length 0. i even have this line in Start(): arrows = new Rigidbody[3]; and arrows...
View Articlewhy do complex objects made from many rigidbodys jointed together explode on...
example: right now i have a big ol tree, 16 segments all connected to end to end in a line sometimes when i fell the tree when it hits the terrain collider it just explodes like crazy and the various...
View Articlesetup grid layout group to expand from the center
is it possible to set a grid layout group to expand from the center, so when i add to the group it will expand left AND right / up AND down, instead of just expanding left OR right / up OR down? i mean...
View ArticleDictionary.TryGetValue for js
I'm trying to use a dictionary's TryGetValue in js, but i would need to pass a variable by reference. though it seems js cant use 'ref' or 'out' to pass by reference. line in questions is like this:...
View Articleobject can't be null when highlighted in the inspector?
Long story short: I have an inventory system that works fine, until I highlight one of the slots in the inspector during run-time, thus, exposing the 'item' object in the inspector. My code checks for,...
View Article