Home | History | Annotate | Download | only in bullet-native

Lines Matching refs:body

56         btRigidBody* body = new btRigidBody(mass, motionState, shape, localInertia);
57 body->setUserPointer(NULL);
58 return reinterpret_cast<jlong>(body);
68 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
69 if (body == NULL) {
74 return body->isInWorld();
84 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
85 if (body == NULL) {
90 // if (body->isStaticOrKinematicObject() || !body->isInWorld())
91 ((jmeMotionState*) body->getMotionState())->setKinematicLocation(env, value);
92 body->setCenterOfMassTransform(((jmeMotionState*) body->getMotionState())->worldTransform);
96 // trans->setBasis(body->getCenterOfMassTransform().getBasis());
98 // body->setCenterOfMassTransform(*trans);
109 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
110 if (body == NULL) {
115 // if (body->isStaticOrKinematicObject() || !body->isInWorld())
116 ((jmeMotionState*) body->getMotionState())->setKinematicRotation(env, value);
117 body->setCenterOfMassTransform(((jmeMotionState*) body->getMotionState())->worldTransform);
121 // trans->setOrigin(body->getCenterOfMassTransform().getOrigin());
123 // body->setCenterOfMassTransform(*trans);
134 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
135 if (body == NULL) {
140 // if (body->isStaticOrKinematicObject() || !body->isInWorld())
141 ((jmeMotionState*) body->getMotionState())->setKinematicRotationQuat(env, value);
142 body->setCenterOfMassTransform(((jmeMotionState*) body->getMotionState())->worldTransform);
146 // trans->setOrigin(body->getCenterOfMassTransform().getOrigin());
148 // body->setCenterOfMassTransform(*trans);
159 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
160 if (body == NULL) {
165 jmeBulletUtil::convert(env, &body->getWorldTransform().getOrigin(), value);
175 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
176 if (body == NULL) {
181 jmeBulletUtil::convertQuat(env, &body->getWorldTransform().getBasis(), value);
191 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
192 if (body == NULL) {
197 jmeBulletUtil::convert(env, &body->getWorldTransform().getBasis(), value);
207 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
208 if (body == NULL) {
214 body->setCollisionFlags(body->getCollisionFlags() | btCollisionObject::CF_KINEMATIC_OBJECT);
215 body->setActivationState(DISABLE_DEACTIVATION);
217 body->setCollisionFlags(body->getCollisionFlags() & ~btCollisionObject::CF_KINEMATIC_OBJECT);
218 body->setActivationState(ACTIVE_TAG);
229 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
230 if (body == NULL) {
235 body->setCcdSweptSphereRadius(value);
245 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
246 if (body == NULL) {
251 body->setCcdMotionThreshold(value);
261 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
262 if (body == NULL) {
267 return body->getCcdSweptSphereRadius();
277 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
278 if (body == NULL) {
283 return body->getCcdMotionThreshold();
293 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
294 if (body == NULL) {
299 return body->getCcdSquareMotionThreshold();
309 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
310 if (body == NULL) {
316 body->setCollisionFlags(body->getCollisionFlags() | btCollisionObject::CF_STATIC_OBJECT);
318 body->setCollisionFlags(body->getCollisionFlags() & ~btCollisionObject::CF_STATIC_OBJECT);
329 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
330 if (body == NULL) {
338 body->setMassProps(mass, localInertia);
339 return reinterpret_cast<jlong>(body);
349 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
350 if (body == NULL) {
355 jmeBulletUtil::convert(env, &body->getGravity(), value);
365 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
366 if (body == NULL) {
373 body->setGravity(vec);
383 body = reinterpret_cast<btRigidBody*>(bodyId);
384 if (body == NULL) {
389 return body->getFriction();
399 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
400 if (body == NULL) {
405 body->setFriction(value);
415 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
416 if (body == NULL) {
421 body->setDamping(value1, value2);
431 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
432 if (body == NULL) {
437 body->setDamping(body->getAngularDamping(), value);
447 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
448 if (body == NULL) {
453 return body->getLinearDamping();
463 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
464 if (body == NULL) {
469 return body->getAngularDamping();
479 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
480 if (body == NULL) {
485 return body->getRestitution();
495 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
496 if (body == NULL) {
501 body->setRestitution(value);
511 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
512 if (body == NULL) {
517 jmeBulletUtil::convert(env, &body->getAngularVelocity(), value);
527 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
528 if (body == NULL) {
535 body->setAngularVelocity(vec);
545 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
546 if (body == NULL) {
551 jmeBulletUtil::convert(env, &body->getLinearVelocity(), value);
561 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
562 if (body == NULL) {
569 body->setLinearVelocity(vec);
579 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
580 if (body == NULL) {
589 body->applyForce(vec1, vec2);
599 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
600 if (body == NULL) {
607 body->applyCentralForce(vec1);
617 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
618 if (body == NULL) {
625 body->applyTorque(vec1);
635 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
636 if (body == NULL) {
645 body->applyImpulse(vec1, vec2);
655 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
656 if (body == NULL) {
663 body->applyTorqueImpulse(vec1);
673 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
674 if (body == NULL) {
679 body->clearForces();
689 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
690 if (body == NULL) {
696 body->setCollisionShape(shape);
706 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
707 if (body == NULL) {
712 body->activate(false);
722 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
723 if (body == NULL) {
728 return body->isActive();
738 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
739 if (body == NULL) {
744 body->setSleepingThresholds(linear, angular);
754 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
755 if (body == NULL) {
760 body->setSleepingThresholds(value, body->getLinearSleepingThreshold());
770 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
771 if (body == NULL) {
776 body->setSleepingThresholds(body->getAngularSleepingThreshold(), value);
786 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
787 if (body == NULL) {
792 return body->getLinearSleepingThreshold();
802 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
803 if (body == NULL) {
808 return body->getAngularSleepingThreshold();
818 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
819 if (body == NULL) {
824 return body->getAngularFactor().getX();
834 btRigidBody* body = reinterpret_cast<btRigidBody*>(bodyId);
835 if (body == NULL) {
844 body->setAngularFactor(vec1);