Back to project page CircleWorldGDX.
The source code is released under:
MIT License
If you think the Android project CircleWorldGDX listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.fdangelo.circleworld.universeengine; /*from w w w. j a va2 s .com*/ public class Thing { // type of thing (use ThingType!) public short type; // number of child public short childs; // Index of parent public short parent; // Index of next Thing with same parent public short nextBrother; // Rotation relative to parent (centidegrees (100 -> 1 degree, 36000 -> 360 // degrees) public short angle; // Distance relative to parent public short distance; // seconds to complete a full rotation around itself (negative -> rotation // counterclockwise) public short rotationPeriod; // seconds to complete a full rotation around the parent (negative -> // rotation counterclockwise) public short orbitalPeriod; // Radius public short radius; // Radius at which things can orbit this thing without colliding with any // brother public short safeRadius; // Seed used to create the thing public int seed; // Cache public float orbitalPeriodInv; public float rotationPeriodInv; }