Lines Matching refs:space

51         jmePhysicsSpace* space = new jmePhysicsSpace(env, object);
52 if (space == NULL) {
54 env->ThrowNew(newExc, "The physics space has not been created.");
57 space->createPhysicsSpace(minX, minY, minZ, maxX, maxY, maxZ, broadphase, threading);
58 return reinterpret_cast<jlong>(space);
68 jmePhysicsSpace* space = reinterpret_cast<jmePhysicsSpace*>(spaceId);
69 if (space == NULL) {
71 env->ThrowNew(newExc, "The physics space does not exist.");
74 space->stepSimulation(tpf, maxSteps, accuracy);
84 jmePhysicsSpace* space = reinterpret_cast<jmePhysicsSpace*>(spaceId);
86 if (space == NULL) {
88 env->ThrowNew(newExc, "The physics space does not exist.");
97 userPointer -> space = space;
99 space->getDynamicsWorld()->addCollisionObject(collisionObject);
109 jmePhysicsSpace* space = reinterpret_cast<jmePhysicsSpace*>(spaceId);
111 if (space == NULL) {
113 env->ThrowNew(newExc, "The physics space does not exist.");
121 space->getDynamicsWorld()->removeCollisionObject(collisionObject);
123 userPointer -> space = NULL;
133 jmePhysicsSpace* space = reinterpret_cast<jmePhysicsSpace*>(spaceId);
135 if (space == NULL) {
137 env->ThrowNew(newExc, "The physics space does not exist.");
146 userPointer -> space = space;
147 space->getDynamicsWorld()->addRigidBody(collisionObject);
157 jmePhysicsSpace* space = reinterpret_cast<jmePhysicsSpace*>(spaceId);
159 if (space == NULL) {
161 env->ThrowNew(newExc, "The physics space does not exist.");
170 userPointer -> space = NULL;
171 space->getDynamicsWorld()->removeRigidBody(collisionObject);
181 jmePhysicsSpace* space = reinterpret_cast<jmePhysicsSpace*>(spaceId);
183 if (space == NULL) {
185 env->ThrowNew(newExc, "The physics space does not exist.");
194 userPointer -> space = space;
195 space->getDynamicsWorld()->addCollisionObject(collisionObject,
208 jmePhysicsSpace* space = reinterpret_cast<jmePhysicsSpace*>(spaceId);
210 if (space == NULL) {
212 env->ThrowNew(newExc, "The physics space does not exist.");
221 userPointer -> space = NULL;
222 space->getDynamicsWorld()->removeCollisionObject(collisionObject);
232 jmePhysicsSpace* space = reinterpret_cast<jmePhysicsSpace*>(spaceId);
234 if (space == NULL) {
236 env->ThrowNew(newExc, "The physics space does not exist.");
244 space->getDynamicsWorld()->addAction(actionObject);
254 jmePhysicsSpace* space = reinterpret_cast<jmePhysicsSpace*>(spaceId);
256 if (space == NULL) {
258 env->ThrowNew(newExc, "The physics space does not exist.");
266 space->getDynamicsWorld()->removeAction(actionObject);
276 jmePhysicsSpace* space = reinterpret_cast<jmePhysicsSpace*>(spaceId);
278 if (space == NULL) {
280 env->ThrowNew(newExc, "The physics space does not exist.");
288 space->getDynamicsWorld()->addVehicle(actionObject);
298 jmePhysicsSpace* space = reinterpret_cast<jmePhysicsSpace*>(spaceId);
300 if (space == NULL) {
302 env->ThrowNew(newExc, "The physics space does not exist.");
310 space->getDynamicsWorld()->removeVehicle(actionObject);
320 jmePhysicsSpace* space = reinterpret_cast<jmePhysicsSpace*>(spaceId);
322 if (space == NULL) {
324 env->ThrowNew(newExc, "The physics space does not exist.");
332 space->getDynamicsWorld()->addConstraint(constraint);
342 jmePhysicsSpace* space = reinterpret_cast<jmePhysicsSpace*>(spaceId);
344 if (space == NULL) {
346 env->ThrowNew(newExc, "The physics space does not exist.");
354 space->getDynamicsWorld()->removeConstraint(constraint);
364 jmePhysicsSpace* space = reinterpret_cast<jmePhysicsSpace*>(spaceId);
365 if (space == NULL) {
367 env->ThrowNew(newExc, "The physics space does not exist.");
372 space->getDynamicsWorld()->setGravity(gravity);
392 jmePhysicsSpace* space = reinterpret_cast<jmePhysicsSpace*>(spaceId);
393 if (space == NULL) {
396 delete(space);
402 jmePhysicsSpace* space = reinterpret_cast<jmePhysicsSpace*> (spaceId);
403 if (space == NULL) {
405 env->ThrowNew(newExc, "The physics space does not exist.");
444 space->getDynamicsWorld()->rayTest(native_from, native_to, resultCallback);