Frnk:
1. Overriding create() to enforce values for component properties should work. No idea why you are having problems. I use this approach everywhere.
2. I suspect presolve and solve are not dispatched for sensors, since there is no solving needed. The approach you are taking is correct. Although you could alternatively listen for the StepEvent.STEP event type.
sketchbook:
1. I did not slice up the world. It is all being simulated at the same time. The size of the Flash stage is actually more of a limitation to level size than performance concerns.
2. If you take a look at the experimental "Actor" and "GroundFinder" classes you can see the core of the algorithm. Based on the roll direction (clockwise/counter clockwise) it finds the "ideal" contact for movement, and negates the friction on all other contacts (friction drives movement). This prevents the ball from getting stuck in corners. Sticky mode involves applying a force between the player and that contact, and disabling gravity. If suddenly the player becomes airborne, a corrective force must be applied to get him back to the ground (he actually "hangs" for a frame when rounding corners). It is still buggy in places. For example, at the point between two polygons mocking the outside of a circle, the player will be jerked backwards because it thinks it's rounding a right angle before hitting the next polygon (actually... it just occurred to me some overlap might fix that).
3. World has a "orientToGravity" flag that will make sure the gravity applied to the player (actually, the scrolling focus object) determines the rotation of the world. So "up" is always "up." The gravity is just an stretched instance of GravityCapsule.
1. Overriding create() to enforce values for component properties should work. No idea why you are having problems. I use this approach everywhere.
2. I suspect presolve and solve are not dispatched for sensors, since there is no solving needed. The approach you are taking is correct. Although you could alternatively listen for the StepEvent.STEP event type.
sketchbook:
1. I did not slice up the world. It is all being simulated at the same time. The size of the Flash stage is actually more of a limitation to level size than performance concerns.
2. If you take a look at the experimental "Actor" and "GroundFinder" classes you can see the core of the algorithm. Based on the roll direction (clockwise/counter clockwise) it finds the "ideal" contact for movement, and negates the friction on all other contacts (friction drives movement). This prevents the ball from getting stuck in corners. Sticky mode involves applying a force between the player and that contact, and disabling gravity. If suddenly the player becomes airborne, a corrective force must be applied to get him back to the ground (he actually "hangs" for a frame when rounding corners). It is still buggy in places. For example, at the point between two polygons mocking the outside of a circle, the player will be jerked backwards because it thinks it's rounding a right angle before hitting the next polygon (actually... it just occurred to me some overlap might fix that).
3. World has a "orientToGravity" flag that will make sure the gravity applied to the player (actually, the scrolling focus object) determines the rotation of the world. So "up" is always "up." The gravity is just an stretched instance of GravityCapsule.