1
vote
1answer
24 views
How to scale an object along an arbitrary axis in global space?
Hello,
I want to scale a model globally. This means that I want to scale it a long a vector in world space. There is only localScale, this means that I have to transform my vector …
0
votes
2answers
31 views
Best way to set up a predictable, scalable viewport?
This one is more challenging, I think.
The Setup So Far
Basically what I am doing is setting up a 2D game with textured planes. The camera is orthographic, and that's no probl …
0
votes
1answer
15 views
Model rotation and hierarchy of game objects - not rotating!
Hi all,
I'm new to unity3d but have programmed 3D apps before. I have a hierarchy like this:
Player
body
shorts
shoes
Player, body, shorts, and shoes are all GameObjects. Pl …
1
vote
2answers
85 views
Move an object through a set of positions
Okay, I know this should be much more straightforward than I'm finding but my brain is mush today, sorry.
In the level i'm making I want characters to patrol back and forth over a …
0
votes
1answer
32 views
How do I reproduce the MVP matrix?
I'm trying to reproduce glstate.matrix.mvp. Does this look right?
objectTransform.localToWorldMatrix*
cameraTransform.worldToLocalMatrix*
cameraTransform.projectionMatrix
Bec …
0
votes
0answers
22 views
transform local euler angles
I am using transform local euler angles to reset the angle of an animated character when it hits the ground. It needs to be local as the character is a child of a rigidbody which f …
0
votes
1answer
46 views
Moving an Object along a Bezier Curve
I have the following code which is attempting to move an object along a path of 3 defined points using my interpretation (which is most likely the problem) of a Bezier curve. I am …
0
votes
0answers
20 views
Imported model gives error: “Transform.rotation is no longer valid”
I have a Blender model that I'm importing into Unity. It has a Bone that is giving me the error: "transform.rotation of X is no longer valid. Input rotation is [...]".
I don't se …
0
votes
1answer
28 views
Gradually scale platform?
I want to have a platform that begins to scale to (about) 0 in width and length once the player walks on top of it, but I want the player to have enough time to walk past this plat …
0
votes
1answer
23 views
tranform position
how do you get the last known tranform position of an object. then set it to that position
1
vote
1answer
117 views
How do you rotate a Bone towards a given target?
Given that I have a an imported Blender model, consisting of a cylinder Mesh, and two connected Bones, each half the Mesh length (and vertices weighted accordingly):
How do I rota …
0
votes
2answers
55 views
Respawn question
I am trying to make a game, where if you walk into a certain point (pre-defined with a trigger collider) and it will set that location as your next spawn point if you were to die.
…
0
votes
1answer
19 views
Detecting transforms showing up in a camera
Hi,
Is there any way that i can list all transforms (MeshFilters, actually) that are showing up on the screen (camera) on each frame?
Thanks in advance,
Raphael
0
votes
1answer
21 views
How do I offset the scaling center for a cube
I've tried moving down the Center Y value, but this doesn't do it. How can I move the transform center of an object?
Thanks
4
votes
2answers
266 views
How can I access the children of a Transform?
I can get the parent of a Transform by using transform.parent, but how do I get the children?
I can use transform.childCount to get the number of children, but how can I access th …