You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// To move the sphere around in a "believeable" manner, two things has to be done
171
178
// 1) the mass has to be increased, to simulate "an unstopable force" (please dont add an imovable object to the space, or chipmunk will crash ... no it wont :)
172
179
self.physicsBody.mass = NewtonSphereMovingMass;
173
-
180
+
174
181
// 2) Save state data, like time and position, so that a velocity can be calculated when moving the sphere.
175
182
// Velocity must be set on forced movement, otherwise the collisions will feel "mushy"
0 commit comments