Quantcast
Channel: Questions in topic: "parenting"
Browsing all 302 articles
Browse latest View live
↧

Making a list of obect's parents their parents from one script.

So here I'm getting a list of Objects, then getting the objects inside of each of their Lists. targs = GetComponent().targets; //Array from Proxemics.cs for (int i = 0; i < targs.Length; i++) { objs...

View Article


Keep Rotation on one Axis but aligning others to Parent

I have a problem keeping one axis locked. i have two tools I can use to grab this mock-up needle like object. ![alt text][1] I just need to be able to keep its rotation around itself (local y) and...

View Article


SetParent() unparenting its children

I instantiated a 2D map tile using a 2D int array. Then I proceeded to to parent each tile I created just to make easier to work with in the Hierarchy viewer like this: foreach( GameObject go in...

View Article

Changing parent after deactivation error?

For my resource management, I'm trying to return my resources to a parent object upon deactivation, like so: void OnDisable() { transform.SetParent(obj.transform); } Everything seems to run as...

View Article

Error with parenting spawned weapon on client side

Hi guys! After week "having fun" with parenting I gave up. So my game is TPS, where i have two weapons: rifle and pistol. In game player will have option to change it. On the host side everything works...

View Article


Scripted tank track bones behave strange

Rigged and scripted Tank track mesh and bones behave strange when tank rotating. Actually bones are problem.I'm using existing script i found on internet and slightly edited it. I'm 3D designer but i'm...

View Article

RigidbodyFPSController does not support rigidbody parents

Hi! As the title say, when i try to attach the FPS Controller (with IsKinematic set to true) to an object with the rigidbody component, the object start to fly like crazy...

View Article

Rigidbody nested within (as a child) a non rigidbody game object?

Can a rigidbody object (B - as a child) be nested within a non-rigidbody game object (A -as a parent)? The reason I ask this is b/c I want to hingejoint the rigidbody child (B) to another rigidbody (C)...

View Article


When I set an object to be the child of another object, the child object does...

Basically, I have it set up so when the player collides with a certain object, the object becomes the player object's child and the object is supposed to follow the player around due to the child...

View Article


How to attach an object to another object so that moving one moves the other

I have found a myriad of questions and answers RELATED to this topic, but none of them have worked for me, so I am quite sure that I am misunderstanding something and/or expecting too much, or clicking...

View Article

Game-view and run time editor are displaying animation but the projectile is...

Hi all, I've been trying to make an AI archer for my game and it's been going well except for one annoying problem. Basically, while both the game-view and runtime editor views are showing the AI...

View Article

Full Rotation 3rd Person Camera

I have a 'Spaceship' with full movement and rotation in a 3D world. Camera is attached to a 'CameraPiv' so i can get a 3rd Person Camera. This 'CameraPivot' can rotate arround 'Spaceship' and if i...

View Article

drag and drop then attach child to parent

what I want to do is drag and drop a cube to a parent cube in a 3d scene and then be able to add another one to the parent or to that child I just attached, it needs to be able to attach to any of the...

View Article


How to set instantiated game object as child on collision in C#

Hi, I'm new to Unity and to programming languages, so I assume this has a simple answer I haven't figured out. I'm making a 2D game where you stack objects on a racket, and if the colliders' relative...

View Article

Why is my Raycast parenting resetting after build?

Hi, I've been troubleshooting an issue for some time now, but I can't manage to figure it out. I'm attempting to build a "Google VR" (Cardboard) FPS game. I'm using the default Unity "FPS Controller"....

View Article


How can I rotate a Parent GameObject so a Child points towards the cursor?

The question says it all really, how can I rotate a parent GameObject so that a child of it points towards the cursor? I know I can find the cursor's location with public Camera theCamera; Vector3...

View Article

Kinematic Movement/Collisions?

Currently, I'm early into an attempt to create a first-person game along a similar play style as "Guns of Icarus", where players take the role of crew members aboard various spacecraft, in a large...

View Article


How to instantiate a GameObject in a scene and keep world transform?

There is next in API: public static Object Instantiate(Object original, Transform parent, bool instantiateInWorldSpace); But I need next: public static Object Instantiate(Object original, bool...

View Article

How to get the new scale of world canvas resized by an emptyobject parent ?

Hello, I'm encountering some issues with my app. I'm actually building a map with point of interests over it for a 2D application. I'm aiming to keep the POI on the same spot and at the same size...

View Article

How to attach game objects without impacting rotation

I have created an object with a series of cubes. When mothering cubes into an empty Gameobject the cubes with rotations that I have entered change to a random rotation. This then shows a green outline...

View Article
Browsing all 302 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>