World class
The class of physical computing world. You must be added to the world physical all computing objects timestep, broadphase, iterations, worldscale, random, stat
Constructors
- World([WorldConfigure? worldConfigure])
Properties
- broadPhase ↔ BroadPhase
-
getter/setter pair
- broadPhaseType ↔ BroadPhaseType
-
getter/setter pair
- contacts ↔ Contact?
-
The contact list
getter/setter pair
-
detectors
↔ Map<
String, CollisionDetector> -
getter/setter pair
- enableRandomizer ↔ bool
-
Whether the constraints randomizer is enabled or not.
getter/setter pair
- gravity ↔ Vec3
-
The gravity in the world.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- invScale ↔ double
-
getter/setter pair
-
islandConstraints
↔ Map<
int, Constraint?> -
getter/setter pair
-
islandRigidBodies
↔ Map<
int, RigidBody?> -
getter/setter pair
-
islandStack
↔ Map<
int, RigidBody?> -
getter/setter pair
- isStat ↔ bool
-
getter/setter pair
- joints ↔ Joint?
-
The joint list
getter/setter pair
- numContactPoints ↔ int
-
The number of contact points
getter/setter pair
- numContacts ↔ int
-
The number of contact
getter/setter pair
- numIslands ↔ int
-
The number of simulation islands.
getter/setter pair
- numIterations ↔ int
-
The number of iterations for constraint solvers.
getter/setter pair
- numJoints ↔ int
-
The number of joints.
getter/setter pair
- numRigidBodies ↔ int
-
number of rigid body
getter/setter pair
- numShapeTypes ↔ int
-
getter/setter pair
- performance ↔ InfoDisplay?
-
This is the detailed information of the performance.
getter/setter pair
- postLoop ↔ void Function()?
-
getter/setter pair
- preLoop ↔ void Function()?
-
getter/setter pair
- randA ↔ int
-
getter/setter pair
- randB ↔ int
-
getter/setter pair
- randX ↔ int
-
getter/setter pair
- rigidBodies ↔ RigidBody?
-
The rigid body list
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scale ↔ double
-
this world scale defaut is 0.1 to 10 meters max for dynamique body
getter/setter pair
- time ↔ double
-
The wall-clock time since simulation start.
getter/setter pair
- timer ↔ Timer?
-
getter/setter pair
- timerate ↔ int
-
getter/setter pair
- timeStep ↔ double
-
The time between each step
getter/setter pair
- unusedContacts ↔ Contact?
-
getter/setter pair
- worldConfigure ↔ WorldConfigure
-
getter/setter pair
Methods
-
add(
ObjectConfigure config) → Core? - add someting to world
-
addContact(
Shape s1, Shape s2) → void - Add contact with 2 shapes
-
addJoint(
Joint joint) → void -
I'll add a joint to the world.
Joint that has been added will be the operands of each step.
shape
Joint to be added -
addRigidBody(
RigidBody rigidBody) → void -
I'll add a rigid body to the world.
Rigid body that has been added will be the operands of each step.
rigidBody
Rigid body that you want to add -
addShape(
Shape shape) → void -
I'll add a shape to the world..
Add to the rigid world, and if you add a shape to a rigid body that has been added to the world,
Shape will be added to the world automatically, please do not call from outside this method.
shape
Shape you want to add -
callSleep(
RigidBody body) → bool - Should call sleep
-
checkContact(
String name1, String name2) → bool - Chack to see if it is a contact
-
clear(
) → void - Reset the world and remove all rigid bodies, shapes, joints and any object from the world.
-
getByName(
String name) → Core? -
getContact(
RigidBody body1, RigidBody body2) → Contact? - Get a contact from 2 rigid bodies
-
getInfo(
) → String -
initBody(
ObjectConfigure config) → RigidBody? - Init the body added
-
initJoint(
ObjectConfigure config) → Joint? - Initlize the joint added
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
play(
) → void -
remove(
dynamic obj) → void - remove someting to world
-
removeContact(
Contact contact) → void - Remove a contact
-
removeJoint(
Joint joint) → void -
I will remove the joint from the world.
Joint that has been added will be the operands of each step.
shape
Joint to be deleted -
removeRigidBody(
RigidBody rigidBody) → void -
I will remove the rigid body from the world.
Rigid body that has been deleted is excluded from the calculation on a step-by-step basis.
rigidBody
Rigid body to be removed -
removeShape(
Shape shape) → void -
I will remove the shape from the world.
Add to the rigid world, and if you add a shape to a rigid body that has been added to the world,
Shape will be added to the world automatically, please do not call from outside this method.
shape
Shape you want to delete -
setGravity(
List< double> ar) → void -
step(
) → void - I will proceed only time step seconds time of World.
-
stop(
) → void -
toNew(
List< double> old, double mul) → List<double> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited