BowlerKernel
|
Public Member Functions | |
PhysicsCore () throws Exception | |
BroadphaseInterface | getBroadphase () |
void | setBroadphase (BroadphaseInterface broadphase) |
DefaultCollisionConfiguration | getCollisionConfiguration () |
void | setCollisionConfiguration (DefaultCollisionConfiguration collisionConfiguration) |
CollisionDispatcher | getDispatcher () |
void | setDispatcher (CollisionDispatcher dispatcher) |
SequentialImpulseConstraintSolver | getSolver () |
void | setSolver (SequentialImpulseConstraintSolver solver) |
DiscreteDynamicsWorld | getDynamicsWorld () |
void | setDynamicsWorld (DiscreteDynamicsWorld dynamicsWorld) |
CollisionShape | getGroundShape () |
void | setGroundShape (CollisionShape cs) |
ArrayList< IPhysicsManager > | getPhysicsObjects () |
void | setDamping (float lin_damping, float ang_damping) |
void | setSleepingThresholds (float linearSleepThreshhold, float angularSleepThreshhold) |
void | setDeactivationTime (float deactivationTime) |
void | setObjects (ArrayList< IPhysicsManager > objects) |
void | startPhysicsThread (int ms) |
ArrayList< CSG > | getCsgFromEngine () |
void | stopPhysicsThread () |
void | step (float timeStep) |
void | stepMs (double timeStep) |
void | add (IPhysicsManager manager) |
void | remove (IPhysicsManager manager) |
void | clear () |
int | getSimulationSubSteps () |
float | getDeactivationTime () |
void | setSimulationSubSteps (int simpulationSubSteps) |
float | getLin_damping () |
float | getAng_damping () |
float | getLinearSleepThreshhold () |
float | getAngularSleepThreshhold () |
Private Attributes | |
BroadphaseInterface | broadphase = new DbvtBroadphase() |
DefaultCollisionConfiguration | collisionConfiguration = new DefaultCollisionConfiguration() |
CollisionDispatcher | dispatcher = new CollisionDispatcher(collisionConfiguration) |
SequentialImpulseConstraintSolver | solver = new SequentialImpulseConstraintSolver() |
DiscreteDynamicsWorld | dynamicsWorld |
CollisionShape | groundShape = null |
ArrayList< IPhysicsManager > | objects = new ArrayList<>() |
RigidBody | groundRigidBody |
boolean | runEngine = false |
int | msTime = 16 |
Thread | physicsThread = null |
int | simulationSubSteps = 5 |
float | lin_damping |
float | ang_damping |
float | linearSleepThreshhold |
float | angularSleepThreshhold |
float | deactivationTime |
Definition at line 28 of file PhysicsCore.java.
com.neuronrobotics.bowlerstudio.physics.PhysicsCore.PhysicsCore | ( | ) | throws Exception |
Definition at line 56 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getDynamicsWorld(), com.neuronrobotics.bowlerstudio.physics.MobileBasePhysicsManager.PhysicsGravityScalar, and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setGroundShape().
void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.add | ( | IPhysicsManager | manager | ) |
Definition at line 224 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getDynamicsWorld(), com.neuronrobotics.bowlerstudio.physics.IPhysicsManager.getFallRigidBody(), and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getPhysicsObjects().
Referenced by com.neuronrobotics.bowlerstudio.physics.MobileBasePhysicsManager.MobileBasePhysicsManager(), and com.neuronrobotics.bowlerstudio.physics.HingeCSGPhysicsManager.update().
void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.clear | ( | ) |
Definition at line 264 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getDynamicsWorld(), com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getPhysicsObjects(), com.neuronrobotics.bowlerstudio.physics.PhysicsCore.msTime, com.neuronrobotics.bowlerstudio.physics.PhysicsCore.stopPhysicsThread(), and com.neuronrobotics.sdk.util.ThreadUtil.wait().
float com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getAng_damping | ( | ) |
Definition at line 302 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.ang_damping.
float com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getAngularSleepThreshhold | ( | ) |
Definition at line 310 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.angularSleepThreshhold.
BroadphaseInterface com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getBroadphase | ( | ) |
Definition at line 64 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.broadphase.
DefaultCollisionConfiguration com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getCollisionConfiguration | ( | ) |
Definition at line 72 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.collisionConfiguration.
ArrayList<CSG> com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getCsgFromEngine | ( | ) |
Definition at line 183 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getPhysicsObjects().
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsEngine.getCsgFromEngine().
float com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getDeactivationTime | ( | ) |
Definition at line 290 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.deactivationTime.
CollisionDispatcher com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getDispatcher | ( | ) |
Definition at line 80 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.dispatcher.
DiscreteDynamicsWorld com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getDynamicsWorld | ( | ) |
Definition at line 96 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.dynamicsWorld.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.add(), com.neuronrobotics.bowlerstudio.physics.PhysicsCore.clear(), com.neuronrobotics.bowlerstudio.physics.MobileBasePhysicsManager.MobileBasePhysicsManager(), com.neuronrobotics.bowlerstudio.physics.PhysicsCore.PhysicsCore(), com.neuronrobotics.bowlerstudio.physics.PhysicsCore.remove(), com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setGroundShape(), com.neuronrobotics.bowlerstudio.physics.PhysicsCore.step(), and com.neuronrobotics.bowlerstudio.physics.VehicleCSGPhysicsManager.VehicleCSGPhysicsManager().
CollisionShape com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getGroundShape | ( | ) |
Definition at line 104 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.groundShape.
float com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getLin_damping | ( | ) |
Definition at line 298 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.lin_damping.
float com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getLinearSleepThreshhold | ( | ) |
Definition at line 306 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.linearSleepThreshhold.
ArrayList<IPhysicsManager> com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getPhysicsObjects | ( | ) |
Definition at line 126 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.objects.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.add(), com.neuronrobotics.bowlerstudio.physics.PhysicsCore.clear(), com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getCsgFromEngine(), com.neuronrobotics.bowlerstudio.physics.PhysicsCore.remove(), com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setDamping(), com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setDeactivationTime(), com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setSleepingThresholds(), and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.step().
int com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getSimulationSubSteps | ( | ) |
Definition at line 286 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.simulationSubSteps.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.step().
SequentialImpulseConstraintSolver com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getSolver | ( | ) |
Definition at line 88 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.solver.
void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.remove | ( | IPhysicsManager | manager | ) |
Definition at line 244 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getDynamicsWorld(), and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getPhysicsObjects().
Referenced by com.neuronrobotics.bowlerstudio.physics.HingeCSGPhysicsManager.update().
void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setBroadphase | ( | BroadphaseInterface | broadphase | ) |
Definition at line 68 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.broadphase.
void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setCollisionConfiguration | ( | DefaultCollisionConfiguration | collisionConfiguration | ) |
Definition at line 76 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.collisionConfiguration.
void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setDamping | ( | float | lin_damping, |
float | ang_damping | ||
) |
Definition at line 130 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.ang_damping, com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getPhysicsObjects(), and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.lin_damping.
void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setDeactivationTime | ( | float | deactivationTime | ) |
Definition at line 146 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.deactivationTime, and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getPhysicsObjects().
void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setDispatcher | ( | CollisionDispatcher | dispatcher | ) |
Definition at line 84 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.dispatcher.
void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setDynamicsWorld | ( | DiscreteDynamicsWorld | dynamicsWorld | ) |
Definition at line 100 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.dynamicsWorld.
void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setGroundShape | ( | CollisionShape | cs | ) |
Definition at line 108 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.dynamicsWorld, com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getDynamicsWorld(), com.neuronrobotics.bowlerstudio.physics.PhysicsCore.groundRigidBody, and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.groundShape.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.PhysicsCore().
void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setObjects | ( | ArrayList< IPhysicsManager > | objects | ) |
Definition at line 153 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.objects.
void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setSimulationSubSteps | ( | int | simpulationSubSteps | ) |
Definition at line 294 of file PhysicsCore.java.
void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setSleepingThresholds | ( | float | linearSleepThreshhold, |
float | angularSleepThreshhold | ||
) |
Definition at line 138 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.angularSleepThreshhold, com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getPhysicsObjects(), and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.linearSleepThreshhold.
void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setSolver | ( | SequentialImpulseConstraintSolver | solver | ) |
Definition at line 92 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.solver.
void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.startPhysicsThread | ( | int | ms | ) |
Definition at line 157 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.msTime, com.neuronrobotics.bowlerstudio.physics.PhysicsCore.physicsThread, com.neuronrobotics.bowlerstudio.physics.PhysicsCore.runEngine, com.neuronrobotics.bowlerstudio.physics.PhysicsCore.stepMs(), and com.neuronrobotics.sdk.util.ThreadUtil.wait().
void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.step | ( | float | timeStep | ) |
Definition at line 198 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.TransformFactory.bulletToAffine(), com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getDynamicsWorld(), com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getPhysicsObjects(), and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getSimulationSubSteps().
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.stepMs().
void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.stepMs | ( | double | timeStep | ) |
Definition at line 220 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.step().
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.startPhysicsThread().
void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.stopPhysicsThread | ( | ) |
Definition at line 193 of file PhysicsCore.java.
References com.neuronrobotics.bowlerstudio.physics.PhysicsCore.physicsThread, and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.runEngine.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.clear().
|
private |
Definition at line 51 of file PhysicsCore.java.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getAng_damping(), and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setDamping().
|
private |
Definition at line 53 of file PhysicsCore.java.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getAngularSleepThreshhold(), and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setSleepingThresholds().
|
private |
Definition at line 30 of file PhysicsCore.java.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getBroadphase(), and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setBroadphase().
|
private |
Definition at line 31 of file PhysicsCore.java.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getCollisionConfiguration(), and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setCollisionConfiguration().
|
private |
Definition at line 54 of file PhysicsCore.java.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getDeactivationTime(), and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setDeactivationTime().
|
private |
Definition at line 32 of file PhysicsCore.java.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getDispatcher(), and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setDispatcher().
|
private |
Definition at line 36 of file PhysicsCore.java.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getDynamicsWorld(), com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setDynamicsWorld(), and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setGroundShape().
|
private |
Definition at line 43 of file PhysicsCore.java.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setGroundShape().
|
private |
Definition at line 40 of file PhysicsCore.java.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getGroundShape(), and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setGroundShape().
|
private |
Definition at line 50 of file PhysicsCore.java.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getLin_damping(), and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setDamping().
|
private |
Definition at line 52 of file PhysicsCore.java.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getLinearSleepThreshhold(), and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setSleepingThresholds().
|
private |
Definition at line 46 of file PhysicsCore.java.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.clear(), and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.startPhysicsThread().
|
private |
Definition at line 42 of file PhysicsCore.java.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getPhysicsObjects(), and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setObjects().
|
private |
Definition at line 48 of file PhysicsCore.java.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.startPhysicsThread(), and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.stopPhysicsThread().
|
private |
Definition at line 45 of file PhysicsCore.java.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.startPhysicsThread(), and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.stopPhysicsThread().
|
private |
Definition at line 49 of file PhysicsCore.java.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getSimulationSubSteps().
|
private |
Definition at line 34 of file PhysicsCore.java.
Referenced by com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getSolver(), and com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setSolver().