agi_shi wrote:I have a question: what happens to the mass of the connected objects? I've noticed that the "primary" object seems to get more massive - it's harder to push around with other objects, etc (the body's mass matrix remains the same, it just "feels" more massive). Yet, the "secondary" object doesn't seem to get more massive. What should I do to make the two objects behave the same (essentially, as if they were the same object)?
Isn’t that great? I love when the simple simulation reduce an effect that is exactly like the presentation of the Law of physic.
The body should feel heavier in a space that is more compressed, if the laws of physic on that space are the same as the one in the space that the body came from.
If you ask me I will show the effect and be proud of the fact that when the space is compressed the Body feel heavier, trust me this is very, very good.
Now since this is a video game and you want the behaviors to be similar in both spaces, then you must change the physic property of the Space, or of the Body.
You can establish simple relations like the equality of potential energy most maintained in both spaces.
That is the potential energy on a body in one space in the same is the potential as the potencial energy of the same body in the second space.
P = M * G * H
Threfore in each space this realtion must be satisfied.
M1 * G1 * H1 = M2 * G2 * H2
You know that distances in space1 are scaled in space2
H1 = S * H2
You can substitute that equation into the energy equation.
M1 * G1 * S * H2 = M2 * G2 * H2
M1 * G1 * S = M2 * G2
Now you must select what property you want to change, the property of space that is change Gravity, or the Physics of the body wjhich is chance the Mass.
I do no think changing the mass is a good idea because that goes against so many laws of physics that I would even try.
I would go for the Gravity,
So you set M1 = M2
M1 * G1 * S = M1 * G2
which lead to:
G1 * S = G2
So the gravity in the secund space must be scaled by the space factor.
This solution I like because it seems to obey the laws of physic
To test it, let us say that a box in one space at some high, the time the box will take to reach the floor will be
h1 = ½ * g 1/ t1^2
t1 = sqrt (2 * h1 / g1)
if the box materialize in a secund space where the distances are scaled by say a facto S, the time the box takes to reach the floor must still be the same that it takes to reacj teh floor in teh first space.
( This is a newtonian world Space-time has nothing to do with this, do not get any ideas)
So in the secund space
t2 = sqrt (2 * h2 / g2)
But
h2 = s * h1
g2 = s * g1
So we get
t2 = sqrt (2 * s * h1 / s * g1) = sqrt (2 * h1 / g1) = t1
And what do you know they take the same amound of time to reach the floor
Had you selected the mass and the body will take different time to reach the floor which is wrong.
I guess that the solution is to have the Space scale factor as part of the force call back.