BowlerKernel
Public Member Functions | Private Attributes | List of all members
com.neuronrobotics.bowlerstudio.physics.PhysicsCore Class Reference
Collaboration diagram for com.neuronrobotics.bowlerstudio.physics.PhysicsCore:
Collaboration graph
[legend]

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< IPhysicsManagergetPhysicsObjects ()
 
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< CSGgetCsgFromEngine ()
 
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< IPhysicsManagerobjects = 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
 

Detailed Description

Definition at line 28 of file PhysicsCore.java.

Constructor & Destructor Documentation

◆ PhysicsCore()

com.neuronrobotics.bowlerstudio.physics.PhysicsCore.PhysicsCore ( ) throws Exception

Member Function Documentation

◆ add()

void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.add ( IPhysicsManager  manager)

◆ clear()

void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.clear ( )

◆ getAng_damping()

float com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getAng_damping ( )

◆ getAngularSleepThreshhold()

float com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getAngularSleepThreshhold ( )

◆ getBroadphase()

BroadphaseInterface com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getBroadphase ( )

◆ getCollisionConfiguration()

DefaultCollisionConfiguration com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getCollisionConfiguration ( )

◆ getCsgFromEngine()

ArrayList<CSG> com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getCsgFromEngine ( )

◆ getDeactivationTime()

float com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getDeactivationTime ( )

◆ getDispatcher()

CollisionDispatcher com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getDispatcher ( )

◆ getDynamicsWorld()

DiscreteDynamicsWorld com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getDynamicsWorld ( )

◆ getGroundShape()

CollisionShape com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getGroundShape ( )

◆ getLin_damping()

float com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getLin_damping ( )

◆ getLinearSleepThreshhold()

float com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getLinearSleepThreshhold ( )

◆ getPhysicsObjects()

ArrayList<IPhysicsManager> com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getPhysicsObjects ( )

◆ getSimulationSubSteps()

int com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getSimulationSubSteps ( )

◆ getSolver()

SequentialImpulseConstraintSolver com.neuronrobotics.bowlerstudio.physics.PhysicsCore.getSolver ( )

◆ remove()

void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.remove ( IPhysicsManager  manager)

◆ setBroadphase()

void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setBroadphase ( BroadphaseInterface  broadphase)

◆ setCollisionConfiguration()

void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setCollisionConfiguration ( DefaultCollisionConfiguration  collisionConfiguration)

◆ setDamping()

void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setDamping ( float  lin_damping,
float  ang_damping 
)

◆ setDeactivationTime()

void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setDeactivationTime ( float  deactivationTime)

◆ setDispatcher()

void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setDispatcher ( CollisionDispatcher  dispatcher)

◆ setDynamicsWorld()

void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setDynamicsWorld ( DiscreteDynamicsWorld  dynamicsWorld)

◆ setGroundShape()

void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setGroundShape ( CollisionShape  cs)

◆ setObjects()

void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setObjects ( ArrayList< IPhysicsManager objects)

◆ setSimulationSubSteps()

void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setSimulationSubSteps ( int  simpulationSubSteps)

Definition at line 294 of file PhysicsCore.java.

◆ setSleepingThresholds()

void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setSleepingThresholds ( float  linearSleepThreshhold,
float  angularSleepThreshhold 
)

◆ setSolver()

void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.setSolver ( SequentialImpulseConstraintSolver  solver)

◆ startPhysicsThread()

void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.startPhysicsThread ( int  ms)

◆ step()

void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.step ( float  timeStep)

◆ 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().

Here is the call graph for this function:

◆ stopPhysicsThread()

void com.neuronrobotics.bowlerstudio.physics.PhysicsCore.stopPhysicsThread ( )

Member Data Documentation

◆ ang_damping

float com.neuronrobotics.bowlerstudio.physics.PhysicsCore.ang_damping
private

◆ angularSleepThreshhold

float com.neuronrobotics.bowlerstudio.physics.PhysicsCore.angularSleepThreshhold
private

◆ broadphase

BroadphaseInterface com.neuronrobotics.bowlerstudio.physics.PhysicsCore.broadphase = new DbvtBroadphase()
private

◆ collisionConfiguration

DefaultCollisionConfiguration com.neuronrobotics.bowlerstudio.physics.PhysicsCore.collisionConfiguration = new DefaultCollisionConfiguration()
private

◆ deactivationTime

float com.neuronrobotics.bowlerstudio.physics.PhysicsCore.deactivationTime
private

◆ dispatcher

CollisionDispatcher com.neuronrobotics.bowlerstudio.physics.PhysicsCore.dispatcher = new CollisionDispatcher(collisionConfiguration)
private

◆ dynamicsWorld

DiscreteDynamicsWorld com.neuronrobotics.bowlerstudio.physics.PhysicsCore.dynamicsWorld
private

◆ groundRigidBody

RigidBody com.neuronrobotics.bowlerstudio.physics.PhysicsCore.groundRigidBody
private

◆ groundShape

CollisionShape com.neuronrobotics.bowlerstudio.physics.PhysicsCore.groundShape = null
private

◆ lin_damping

float com.neuronrobotics.bowlerstudio.physics.PhysicsCore.lin_damping
private

◆ linearSleepThreshhold

float com.neuronrobotics.bowlerstudio.physics.PhysicsCore.linearSleepThreshhold
private

◆ msTime

int com.neuronrobotics.bowlerstudio.physics.PhysicsCore.msTime = 16
private

◆ objects

ArrayList<IPhysicsManager> com.neuronrobotics.bowlerstudio.physics.PhysicsCore.objects = new ArrayList<>()
private

◆ physicsThread

Thread com.neuronrobotics.bowlerstudio.physics.PhysicsCore.physicsThread = null
private

◆ runEngine

boolean com.neuronrobotics.bowlerstudio.physics.PhysicsCore.runEngine = false
private

◆ simulationSubSteps

int com.neuronrobotics.bowlerstudio.physics.PhysicsCore.simulationSubSteps = 5
private

◆ solver

SequentialImpulseConstraintSolver com.neuronrobotics.bowlerstudio.physics.PhysicsCore.solver = new SequentialImpulseConstraintSolver()
private

The documentation for this class was generated from the following file: