コード例 #1
0
 public btHingeConstraint createHingeConstraint(
     btRigidBody rbA, Matrix4 rbAFrame, boolean useReferenceFrameA) {
   long cPtr =
       ExtrasJNI.btWorldImporter_createHingeConstraint__SWIG_2(
           swigCPtr, this, btRigidBody.getCPtr(rbA), rbA, rbAFrame, useReferenceFrameA);
   return (cPtr == 0) ? null : new btHingeConstraint(cPtr, false);
 }
コード例 #2
0
 public btSliderConstraint createSliderConstraint(
     btRigidBody rbB, Matrix4 frameInB, boolean useLinearReferenceFrameA) {
   long cPtr =
       ExtrasJNI.btWorldImporter_createSliderConstraint__SWIG_1(
           swigCPtr, this, btRigidBody.getCPtr(rbB), rbB, frameInB, useLinearReferenceFrameA);
   return (cPtr == 0) ? null : new btSliderConstraint(cPtr, false);
 }
コード例 #3
0
 public btCollisionObject createCollisionObject(
     Matrix4 startTransform, btCollisionShape shape, String bodyName) {
   return btCollisionObject.getInstance(
       ExtrasJNI.btWorldImporter_createCollisionObject(
           swigCPtr, this, startTransform, btCollisionShape.getCPtr(shape), shape, bodyName),
       false);
 }
コード例 #4
0
 public btStridingMeshInterfaceData createStridingMeshInterfaceData(
     btStridingMeshInterfaceData interfaceData) {
   long cPtr =
       ExtrasJNI.btWorldImporter_createStridingMeshInterfaceData(
           swigCPtr, this, btStridingMeshInterfaceData.getCPtr(interfaceData), interfaceData);
   return (cPtr == 0) ? null : new btStridingMeshInterfaceData(cPtr, false);
 }
コード例 #5
0
 public btMultiSphereShape createMultiSphereShape(
     btVector3 positions, java.nio.FloatBuffer radi, int numSpheres) {
   assert radi.isDirect() : "Buffer must be allocated direct.";
   {
     long cPtr =
         ExtrasJNI.btWorldImporter_createMultiSphereShape(
             swigCPtr, this, btVector3.getCPtr(positions), positions, radi, numSpheres);
     return (cPtr == 0) ? null : new btMultiSphereShape(cPtr, false);
   }
 }
コード例 #6
0
 public btScaledBvhTriangleMeshShape createScaledTrangleMeshShape(
     btBvhTriangleMeshShape meshShape, Vector3 localScalingbtBvhTriangleMeshShape) {
   long cPtr =
       ExtrasJNI.btWorldImporter_createScaledTrangleMeshShape(
           swigCPtr,
           this,
           btBvhTriangleMeshShape.getCPtr(meshShape),
           meshShape,
           localScalingbtBvhTriangleMeshShape);
   return (cPtr == 0) ? null : new btScaledBvhTriangleMeshShape(cPtr, false);
 }
コード例 #7
0
 @Override
 protected synchronized void delete() {
   if (swigCPtr != 0) {
     if (swigCMemOwn) {
       swigCMemOwn = false;
       ExtrasJNI.delete_btWorldImporter(swigCPtr);
     }
     swigCPtr = 0;
   }
   super.delete();
 }
コード例 #8
0
 public btBvhTriangleMeshShape createBvhTriangleMeshShape(
     btStridingMeshInterface trimesh, btOptimizedBvh bvh) {
   long cPtr =
       ExtrasJNI.btWorldImporter_createBvhTriangleMeshShape(
           swigCPtr,
           this,
           btStridingMeshInterface.getCPtr(trimesh),
           trimesh,
           btOptimizedBvh.getCPtr(bvh),
           bvh);
   return (cPtr == 0) ? null : new btBvhTriangleMeshShape(cPtr, false);
 }
コード例 #9
0
 public btPoint2PointConstraint createPoint2PointConstraint(
     btRigidBody rbA, btRigidBody rbB, Vector3 pivotInA, Vector3 pivotInB) {
   long cPtr =
       ExtrasJNI.btWorldImporter_createPoint2PointConstraint__SWIG_0(
           swigCPtr,
           this,
           btRigidBody.getCPtr(rbA),
           rbA,
           btRigidBody.getCPtr(rbB),
           rbB,
           pivotInA,
           pivotInB);
   return (cPtr == 0) ? null : new btPoint2PointConstraint(cPtr, false);
 }
コード例 #10
0
 public btConeTwistConstraint createConeTwistConstraint(
     btRigidBody rbA, btRigidBody rbB, Matrix4 rbAFrame, Matrix4 rbBFrame) {
   long cPtr =
       ExtrasJNI.btWorldImporter_createConeTwistConstraint__SWIG_0(
           swigCPtr,
           this,
           btRigidBody.getCPtr(rbA),
           rbA,
           btRigidBody.getCPtr(rbB),
           rbB,
           rbAFrame,
           rbBFrame);
   return (cPtr == 0) ? null : new btConeTwistConstraint(cPtr, false);
 }
コード例 #11
0
 public btGeneric6DofSpring2Constraint createGeneric6DofSpring2Constraint(
     btRigidBody rbA, btRigidBody rbB, Matrix4 frameInA, Matrix4 frameInB, int rotateOrder) {
   long cPtr =
       ExtrasJNI.btWorldImporter_createGeneric6DofSpring2Constraint(
           swigCPtr,
           this,
           btRigidBody.getCPtr(rbA),
           rbA,
           btRigidBody.getCPtr(rbB),
           rbB,
           frameInA,
           frameInB,
           rotateOrder);
   return (cPtr == 0) ? null : new btGeneric6DofSpring2Constraint(cPtr, false);
 }
コード例 #12
0
 public SWIGTYPE_p_btGearConstraint createGearConstraint(
     btRigidBody rbA, btRigidBody rbB, Vector3 axisInA, Vector3 axisInB, float ratio) {
   long cPtr =
       ExtrasJNI.btWorldImporter_createGearConstraint(
           swigCPtr,
           this,
           btRigidBody.getCPtr(rbA),
           rbA,
           btRigidBody.getCPtr(rbB),
           rbB,
           axisInA,
           axisInB,
           ratio);
   return (cPtr == 0) ? null : new SWIGTYPE_p_btGearConstraint(cPtr, false);
 }
コード例 #13
0
 public btRigidBody createRigidBody(
     boolean isDynamic,
     float mass,
     Matrix4 startTransform,
     btCollisionShape shape,
     String bodyName) {
   return btRigidBody.getInstance(
       ExtrasJNI.btWorldImporter_createRigidBody(
           swigCPtr,
           this,
           isDynamic,
           mass,
           startTransform,
           btCollisionShape.getCPtr(shape),
           shape,
           bodyName),
       false);
 }
コード例 #14
0
 public btGeneric6DofSpringConstraint createGeneric6DofSpringConstraint(
     btRigidBody rbA,
     btRigidBody rbB,
     Matrix4 frameInA,
     Matrix4 frameInB,
     boolean useLinearReferenceFrameA) {
   long cPtr =
       ExtrasJNI.btWorldImporter_createGeneric6DofSpringConstraint(
           swigCPtr,
           this,
           btRigidBody.getCPtr(rbA),
           rbA,
           btRigidBody.getCPtr(rbB),
           rbB,
           frameInA,
           frameInB,
           useLinearReferenceFrameA);
   return (cPtr == 0) ? null : new btGeneric6DofSpringConstraint(cPtr, false);
 }
コード例 #15
0
 public int getNumRigidBodies() {
   return ExtrasJNI.btWorldImporter_getNumRigidBodies(swigCPtr, this);
 }
コード例 #16
0
 public btCollisionShape getCollisionShapeByIndex(int index) {
   long cPtr = ExtrasJNI.btWorldImporter_getCollisionShapeByIndex(swigCPtr, this, index);
   return (cPtr == 0) ? null : btCollisionShape.newDerivedObject(cPtr, false);
 }
コード例 #17
0
 public int getNumCollisionShapes() {
   return ExtrasJNI.btWorldImporter_getNumCollisionShapes(swigCPtr, this);
 }
コード例 #18
0
 public int getVerboseMode() {
   return ExtrasJNI.btWorldImporter_getVerboseMode(swigCPtr, this);
 }
コード例 #19
0
 public void setVerboseMode(int verboseMode) {
   ExtrasJNI.btWorldImporter_setVerboseMode(swigCPtr, this, verboseMode);
 }
コード例 #20
0
 public void deleteAllData() {
   ExtrasJNI.btWorldImporter_deleteAllData(swigCPtr, this);
 }
コード例 #21
0
 public btOptimizedBvh createOptimizedBvh() {
   long cPtr = ExtrasJNI.btWorldImporter_createOptimizedBvh(swigCPtr, this);
   return (cPtr == 0) ? null : new btOptimizedBvh(cPtr, false);
 }
コード例 #22
0
 public btTriangleIndexVertexArray createTriangleMeshContainer() {
   long cPtr = ExtrasJNI.btWorldImporter_createTriangleMeshContainer(swigCPtr, this);
   return (cPtr == 0) ? null : new btTriangleIndexVertexArray(cPtr, false);
 }
コード例 #23
0
 public btCollisionShape createConvexTriangleMeshShape(btStridingMeshInterface trimesh) {
   long cPtr =
       ExtrasJNI.btWorldImporter_createConvexTriangleMeshShape(
           swigCPtr, this, btStridingMeshInterface.getCPtr(trimesh), trimesh);
   return (cPtr == 0) ? null : btCollisionShape.newDerivedObject(cPtr, false);
 }
コード例 #24
0
 public btGImpactMeshShape createGimpactShape(btStridingMeshInterface trimesh) {
   long cPtr =
       ExtrasJNI.btWorldImporter_createGimpactShape(
           swigCPtr, this, btStridingMeshInterface.getCPtr(trimesh), trimesh);
   return (cPtr == 0) ? null : new btGImpactMeshShape(cPtr, false);
 }
コード例 #25
0
 public btCompoundShape createCompoundShape() {
   long cPtr = ExtrasJNI.btWorldImporter_createCompoundShape(swigCPtr, this);
   return (cPtr == 0) ? null : new btCompoundShape(cPtr, false);
 }
コード例 #26
0
 public btTriangleIndexVertexArray createMeshInterface(btStridingMeshInterfaceData meshData) {
   long cPtr =
       ExtrasJNI.btWorldImporter_createMeshInterface(
           swigCPtr, this, btStridingMeshInterfaceData.getCPtr(meshData), meshData);
   return (cPtr == 0) ? null : new btTriangleIndexVertexArray(cPtr, false);
 }
コード例 #27
0
 public btCollisionObject getRigidBodyByIndex(int index) {
   return btCollisionObject.getInstance(
       ExtrasJNI.btWorldImporter_getRigidBodyByIndex(swigCPtr, this, index), false);
 }
コード例 #28
0
 public btWorldImporter(btDynamicsWorld world) {
   this(ExtrasJNI.new_btWorldImporter(btDynamicsWorld.getCPtr(world), world), true);
 }
コード例 #29
0
 public int getNumConstraints() {
   return ExtrasJNI.btWorldImporter_getNumConstraints(swigCPtr, this);
 }
コード例 #30
0
 public btTriangleInfoMap createTriangleInfoMap() {
   long cPtr = ExtrasJNI.btWorldImporter_createTriangleInfoMap(swigCPtr, this);
   return (cPtr == 0) ? null : new btTriangleInfoMap(cPtr, false);
 }