How To Access Children of a Parent Object
Hi all, I'm trying to build something that looks for the closest gameobject to the player (in this case a weapon) and fulfilling a set of conditions draws a ray between two 'attach points'. What I've...
View ArticleDistance Variable Not Returning Value/Ray not casting
Hi guys, Been working on a script to find the nearest object named 'Weapon' and pull it towards the player when a bool becomes true- I'll develop this further once I've got it working, but at the...
View ArticleKeeping an Object Locked In Position Around Another
Hi Guys, I'm making a script in which objects defined as weapons can be dragged to the player and placed in position using physics. This is achieved using two empty objects, Player_Attach_Point and...
View ArticleKinematic Child Object Jumping Above Player
Hi guys, I'm almost there with a script that drags an object defined as a weapon to a player via physics and, if it interacts with a spherecast, is set as a non-kinematic child of the player (i.e...
View ArticleList/Array Not Updating
Hi guys, I've been trying to hash together a script to find the nearest target objects with tag 'Target' in proximity to a player so I can use them to target the nearest target, next nearest target...
View ArticleMoving A Kinematic Child Object
Hi Guys, This is a script to find and drag an object with a tag "weapon" to a player character using physics before holding it in place at a specific point as if floating, namely an empty child object...
View ArticleLock On Reticle
Hi Guys, I would like to place a reticle over a targeted object on the screen from a camera script. At the moment I have got a target object to which the player and camera look and orbit around on a...
View ArticleMaking an Array of Rays
Hi all, I'm trying to perform a Raycast scan around an object with a set granularity (i.e. 100 rays per 360 degrees) and read all of the Rays I generate that do not hit something and those that do into...
View ArticleList Sort not Returning Value
Hi guys, I'm trying to make a function that scans around an object using rays at a given number of rays per cycle, or granularity. If the ray does not return with a hit, I want to feed this into a list...
View ArticleMaking a set of buttons from an Array
Hi guys, Having done some thorough research on the subject, I cannot work out how to create a set of buttons from an array or list. Here is my code that I have written to, upon clicking a GUI button,...
View ArticleHoming Missile not maintaining forward velocity
Hi guys, Have been building a homing missile for my project wherein if targeting, the projectile will home in on the target or conversely if aiming will follow the targeting reticule as in Half Life 2....
View ArticleKeeping transform.forward facing forwards
Hi guys, I've been wrestling with a problem involving a physics movement script. The script is great, but I recently added in being able to look up and down using torque on the rigidbody. This is also...
View ArticleHiding Scripts for Multiplayer
Hi guys, I am making a local split-screen multiplayer game which may progress to online at some point. In short, I have a problem similar to that of the multiple camera problem when it comes to...
View ArticleControlling GUI with Xbox 360 Controller
Hi all, I've hit a bit of a predicament in the process of making my game. For the moment I would like to focus on making a really decent split-screen game before I think about online multiplayer,...
View Article3d Rigidbody Trajectory Prediction
Hello all, I am attempting to produce a linerender model of a rigidbody's trajectory using an initial force applied to a dragless rigidbody and it's mass. However, the simulation wildly overestimates...
View ArticleConnecting Perlin Terrain Tiles
Hello mateys, I have currently come up to a conundrum regarding joining up two Perlin noise - based terrain tiles calculated on the fly to form a canyon and am not sure how to proceed. The code I...
View ArticleRunning Costly Code over Time
Hello mateys, In short, I have a relatively computationally complex set of code for generating terrain on the fly that currently costs too much to run as a single function call from the Update() when...
View ArticleGenerating Mesh using Points
Hello all, I am trying to connect some generated points to form a mesh, but despite my best efforts to try and understand how to piece the mesh and triangles together, I'm still struggling! The image...
View ArticleHow To Access Children of a Parent Object
Hi all, I'm trying to build something that looks for the closest gameobject to the player (in this case a weapon) and fulfilling a set of conditions draws a ray between two 'attach points'. What I've...
View ArticleDistance Variable Not Returning Value/Ray not casting
Hi guys, Been working on a script to find the nearest object named 'Weapon' and pull it towards the player when a bool becomes true- I'll develop this further once I've got it working, but at the...
View Article
More Pages to Explore .....