#arrays
1 messages · Page 1 of 1 (latest)
what about Lists?
the length and contents of a list can be changed at runtime yes
if thats the case I'm using lists to store my boxes
[SerializeField] private List<GameObject> CarriedBoxes = new List<GameObject>();
the physics work but i can't change it's position in runtime
why not?
give me a minute to record a video
It is doing that it's just not following the vector 3 i gave in BalanceVelocity
It won't listen the Vector3 Balance Velocity in run Time
I think i found the problem.
the box transform doesn't respond to to this when i change it in the editor LatestestAddedBox.transform.position = new Vector3(BalanceVelocity.x, BalanceVelocity.y, BalanceVelocity.z);
It might have something to do with this error
seems like you're setting the velocity to the position? Usually with velocity you ADD it to the position
maybe a += would be better in this case
what is that debug menu on the bottom there? looks cool
yes it is