Home
last modified time | relevance | path

Searched refs:capsule (Results 1 – 25 of 78) sorted by relevance

1234

/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/joints/
DSliderJoint.java421 OutputCapsule capsule = ex.getCapsule(this); in write() local
423 capsule.write(getDampingDirAng(), "dampingDirAng", 0f); in write()
424 capsule.write(getDampingDirLin(), "dampingDirLin", 0f); in write()
425 capsule.write(getDampingLimAng(), "dampingLimAng", 0f); in write()
426 capsule.write(getDampingLimLin(), "dampingLimLin", 0f); in write()
427 capsule.write(getDampingOrthoAng(), "dampingOrthoAng", 0f); in write()
428 capsule.write(getDampingOrthoLin(), "dampingOrthoLin", 0f); in write()
429 capsule.write(getLowerAngLimit(), "lowerAngLimit", 0f); in write()
430 capsule.write(getLowerLinLimit(), "lowerLinLimit", 0f); in write()
431 capsule.write(getMaxAngMotorForce(), "maxAngMotorForce", 0f); in write()
[all …]
DSixDofJoint.java168 InputCapsule capsule = im.getCapsule(this); in read() local
174 …setAngularUpperLimit((Vector3f) capsule.readSavable("angularUpperLimit", new Vector3f(Vector3f.POS… in read()
175 …setAngularLowerLimit((Vector3f) capsule.readSavable("angularLowerLimit", new Vector3f(Vector3f.NEG… in read()
176 …setLinearUpperLimit((Vector3f) capsule.readSavable("linearUpperLimit", new Vector3f(Vector3f.POSIT… in read()
177 …setLinearLowerLimit((Vector3f) capsule.readSavable("linearLowerLimit", new Vector3f(Vector3f.NEGAT… in read()
181 rotationalLimitMotor.setBounce(capsule.readFloat("rotMotor" + i + "_Bounce", 0.0f)); in read()
182 rotationalLimitMotor.setDamping(capsule.readFloat("rotMotor" + i + "_Damping", 1.0f)); in read()
183 rotationalLimitMotor.setERP(capsule.readFloat("rotMotor" + i + "_ERP", 0.5f)); in read()
184 …rotationalLimitMotor.setHiLimit(capsule.readFloat("rotMotor" + i + "_HiLimit", Float.POSITIVE_INFI… in read()
185 … rotationalLimitMotor.setLimitSoftness(capsule.readFloat("rotMotor" + i + "_LimitSoftness", 0.5f)); in read()
[all …]
DHingeJoint.java142 OutputCapsule capsule = ex.getCapsule(this); in write() local
143 capsule.write(axisA, "axisA", new Vector3f()); in write()
144 capsule.write(axisB, "axisB", new Vector3f()); in write()
146 capsule.write(angularOnly, "angularOnly", false); in write()
148 capsule.write(getLowerLimit(), "lowerLimit", 1e30f); in write()
149 capsule.write(getUpperLimit(), "upperLimit", -1e30f); in write()
151 capsule.write(biasFactor, "biasFactor", 0.3f); in write()
152 capsule.write(relaxationFactor, "relaxationFactor", 1f); in write()
153 capsule.write(limitSoftness, "limitSoftness", 0.9f); in write()
155 capsule.write(getEnableMotor(), "enableAngularMotor", false); in write()
[all …]
DConeJoint.java104 OutputCapsule capsule = ex.getCapsule(this); in write() local
105 capsule.write(rotA, "rotA", new Matrix3f()); in write()
106 capsule.write(rotB, "rotB", new Matrix3f()); in write()
108 capsule.write(angularOnly, "angularOnly", false); in write()
109 capsule.write(swingSpan1, "swingSpan1", 1e30f); in write()
110 capsule.write(swingSpan2, "swingSpan2", 1e30f); in write()
111 capsule.write(twistSpan, "twistSpan", 1e30f); in write()
117 InputCapsule capsule = im.getCapsule(this); in read() local
118 this.rotA = (Matrix3f) capsule.readSavable("rotA", new Matrix3f()); in read()
119 this.rotB = (Matrix3f) capsule.readSavable("rotB", new Matrix3f()); in read()
[all …]
DPhysicsJoint.java124 OutputCapsule capsule = ex.getCapsule(this); in write() local
125 capsule.write(nodeA, "nodeA", null); in write()
126 capsule.write(nodeB, "nodeB", null); in write()
127 capsule.write(pivotA, "pivotA", null); in write()
128 capsule.write(pivotB, "pivotB", null); in write()
132 InputCapsule capsule = im.getCapsule(this); in read() local
133 this.nodeA = ((PhysicsRigidBody) capsule.readSavable("nodeA", new PhysicsRigidBody())); in read()
134 this.nodeB = (PhysicsRigidBody) capsule.readSavable("nodeB", new PhysicsRigidBody()); in read()
135 this.pivotA = (Vector3f) capsule.readSavable("pivotA", new Vector3f()); in read()
136 this.pivotB = (Vector3f) capsule.readSavable("pivotB", new Vector3f()); in read()
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/joints/
DSliderJoint.java309 OutputCapsule capsule = ex.getCapsule(this); in write() local
311 capsule.write(((SliderConstraint) constraint).getDampingDirAng(), "dampingDirAng", 0f); in write()
312 capsule.write(((SliderConstraint) constraint).getDampingDirLin(), "dampingDirLin", 0f); in write()
313 capsule.write(((SliderConstraint) constraint).getDampingLimAng(), "dampingLimAng", 0f); in write()
314 capsule.write(((SliderConstraint) constraint).getDampingLimLin(), "dampingLimLin", 0f); in write()
315 capsule.write(((SliderConstraint) constraint).getDampingOrthoAng(), "dampingOrthoAng", 0f); in write()
316 capsule.write(((SliderConstraint) constraint).getDampingOrthoLin(), "dampingOrthoLin", 0f); in write()
317 capsule.write(((SliderConstraint) constraint).getLowerAngLimit(), "lowerAngLimit", 0f); in write()
318 capsule.write(((SliderConstraint) constraint).getLowerLinLimit(), "lowerLinLimit", 0f); in write()
319capsule.write(((SliderConstraint) constraint).getMaxAngMotorForce(), "maxAngMotorForce", 0f); in write()
[all …]
DSixDofJoint.java162 InputCapsule capsule = im.getCapsule(this); in read() local
172 …setAngularUpperLimit((Vector3f) capsule.readSavable("angularUpperLimit", new Vector3f(Vector3f.POS… in read()
173 …setAngularLowerLimit((Vector3f) capsule.readSavable("angularLowerLimit", new Vector3f(Vector3f.NEG… in read()
174 …setLinearUpperLimit((Vector3f) capsule.readSavable("linearUpperLimit", new Vector3f(Vector3f.POSIT… in read()
175 …setLinearLowerLimit((Vector3f) capsule.readSavable("linearLowerLimit", new Vector3f(Vector3f.NEGAT… in read()
179 rotationalLimitMotor.setBounce(capsule.readFloat("rotMotor" + i + "_Bounce", 0.0f)); in read()
180 rotationalLimitMotor.setDamping(capsule.readFloat("rotMotor" + i + "_Damping", 1.0f)); in read()
181 rotationalLimitMotor.setERP(capsule.readFloat("rotMotor" + i + "_ERP", 0.5f)); in read()
182 …rotationalLimitMotor.setHiLimit(capsule.readFloat("rotMotor" + i + "_HiLimit", Float.POSITIVE_INFI… in read()
183 … rotationalLimitMotor.setLimitSoftness(capsule.readFloat("rotMotor" + i + "_LimitSoftness", 0.5f)); in read()
[all …]
DHingeJoint.java110 OutputCapsule capsule = ex.getCapsule(this); in write() local
111 capsule.write(axisA, "axisA", new Vector3f()); in write()
112 capsule.write(axisB, "axisB", new Vector3f()); in write()
114 capsule.write(angularOnly, "angularOnly", false); in write()
116 capsule.write(((HingeConstraint) constraint).getLowerLimit(), "lowerLimit", 1e30f); in write()
117 capsule.write(((HingeConstraint) constraint).getUpperLimit(), "upperLimit", -1e30f); in write()
119 capsule.write(biasFactor, "biasFactor", 0.3f); in write()
120 capsule.write(relaxationFactor, "relaxationFactor", 1f); in write()
121 capsule.write(limitSoftness, "limitSoftness", 0.9f); in write()
123capsule.write(((HingeConstraint) constraint).getEnableAngularMotor(), "enableAngularMotor", false); in write()
[all …]
DConeJoint.java101 OutputCapsule capsule = ex.getCapsule(this); in write() local
102 capsule.write(rotA, "rotA", new Matrix3f()); in write()
103 capsule.write(rotB, "rotB", new Matrix3f()); in write()
105 capsule.write(angularOnly, "angularOnly", false); in write()
106 capsule.write(swingSpan1, "swingSpan1", 1e30f); in write()
107 capsule.write(swingSpan2, "swingSpan2", 1e30f); in write()
108 capsule.write(twistSpan, "twistSpan", 1e30f); in write()
114 InputCapsule capsule = im.getCapsule(this); in read() local
115 this.rotA = (Matrix3f) capsule.readSavable("rotA", new Matrix3f()); in read()
116 this.rotB = (Matrix3f) capsule.readSavable("rotB", new Matrix3f()); in read()
[all …]
DPhysicsJoint.java121 OutputCapsule capsule = ex.getCapsule(this); in write() local
122 capsule.write(nodeA, "nodeA", null); in write()
123 capsule.write(nodeB, "nodeB", null); in write()
124 capsule.write(pivotA, "pivotA", null); in write()
125 capsule.write(pivotB, "pivotB", null); in write()
129 InputCapsule capsule = im.getCapsule(this); in read() local
130 this.nodeA = ((PhysicsRigidBody) capsule.readSavable("nodeA", new PhysicsRigidBody())); in read()
131 this.nodeB = (PhysicsRigidBody) capsule.readSavable("nodeB", new PhysicsRigidBody()); in read()
132 this.pivotA = (Vector3f) capsule.readSavable("pivotA", new Vector3f()); in read()
133 this.pivotB = (Vector3f) capsule.readSavable("pivotB", new Vector3f()); in read()
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/objects/
DVehicleWheel.java365 InputCapsule capsule = im.getCapsule(this); in read() local
366 wheelSpatial = (Spatial) capsule.readSavable("wheelSpatial", null); in read()
367 frontWheel = capsule.readBoolean("frontWheel", false); in read()
368 location = (Vector3f) capsule.readSavable("wheelLocation", new Vector3f()); in read()
369 direction = (Vector3f) capsule.readSavable("wheelDirection", new Vector3f()); in read()
370 axle = (Vector3f) capsule.readSavable("wheelAxle", new Vector3f()); in read()
371 suspensionStiffness = capsule.readFloat("suspensionStiffness", 20.0f); in read()
372 wheelsDampingRelaxation = capsule.readFloat("wheelsDampingRelaxation", 2.3f); in read()
373 wheelsDampingCompression = capsule.readFloat("wheelsDampingCompression", 4.4f); in read()
374 frictionSlip = capsule.readFloat("frictionSlip", 10.5f); in read()
[all …]
DPhysicsCharacter.java284 OutputCapsule capsule = e.getCapsule(this); in write() local
285 capsule.write(stepHeight, "stepHeight", 1.0f); in write()
286 capsule.write(getGravity(), "gravity", 9.8f * 3); in write()
287 capsule.write(getMaxSlope(), "maxSlope", 1.0f); in write()
288 capsule.write(fallSpeed, "fallSpeed", 55.0f); in write()
289 capsule.write(jumpSpeed, "jumpSpeed", 10.0f); in write()
290 capsule.write(upAxis, "upAxis", 1); in write()
291 capsule.write(getCcdMotionThreshold(), "ccdMotionThreshold", 0); in write()
292 capsule.write(getCcdSweptSphereRadius(), "ccdSweptSphereRadius", 0); in write()
293 capsule.write(getPhysicsLocation(new Vector3f()), "physicsLocation", new Vector3f()); in write()
[all …]
DPhysicsRigidBody.java704 OutputCapsule capsule = e.getCapsule(this); in write() local
706 capsule.write(getMass(), "mass", 1.0f); in write()
708 capsule.write(getGravity(), "gravity", Vector3f.ZERO); in write()
709 capsule.write(getFriction(), "friction", 0.5f); in write()
710 capsule.write(getRestitution(), "restitution", 0); in write()
711 capsule.write(getAngularFactor(), "angularFactor", 1); in write()
712 capsule.write(kinematic, "kinematic", false); in write()
714 capsule.write(getLinearDamping(), "linearDamping", 0); in write()
715 capsule.write(getAngularDamping(), "angularDamping", 0); in write()
716 capsule.write(getLinearSleepingThreshold(), "linearSleepingThreshold", 0.8f); in write()
[all …]
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/objects/
DVehicleWheel.java345 InputCapsule capsule = im.getCapsule(this); in read() local
346 wheelSpatial = (Spatial) capsule.readSavable("wheelSpatial", null); in read()
347 frontWheel = capsule.readBoolean("frontWheel", false); in read()
348 location = (Vector3f) capsule.readSavable("wheelLocation", new Vector3f()); in read()
349 direction = (Vector3f) capsule.readSavable("wheelDirection", new Vector3f()); in read()
350 axle = (Vector3f) capsule.readSavable("wheelAxle", new Vector3f()); in read()
351 suspensionStiffness = capsule.readFloat("suspensionStiffness", 20.0f); in read()
352 wheelsDampingRelaxation = capsule.readFloat("wheelsDampingRelaxation", 2.3f); in read()
353 wheelsDampingCompression = capsule.readFloat("wheelsDampingCompression", 4.4f); in read()
354 frictionSlip = capsule.readFloat("frictionSlip", 10.5f); in read()
[all …]
DPhysicsCharacter.java262 OutputCapsule capsule = e.getCapsule(this); in write() local
263 capsule.write(stepHeight, "stepHeight", 1.0f); in write()
264 capsule.write(getGravity(), "gravity", 9.8f * 3); in write()
265 capsule.write(getMaxSlope(), "maxSlope", 1.0f); in write()
266 capsule.write(fallSpeed, "fallSpeed", 55.0f); in write()
267 capsule.write(jumpSpeed, "jumpSpeed", 10.0f); in write()
268 capsule.write(upAxis, "upAxis", 1); in write()
269 capsule.write(getCcdMotionThreshold(), "ccdMotionThreshold", 0); in write()
270 capsule.write(getCcdSweptSphereRadius(), "ccdSweptSphereRadius", 0); in write()
271 capsule.write(getPhysicsLocation(new Vector3f()), "physicsLocation", new Vector3f()); in write()
[all …]
DPhysicsRigidBody.java655 OutputCapsule capsule = e.getCapsule(this); in write() local
657 capsule.write(getMass(), "mass", 1.0f); in write()
659 capsule.write(getGravity(), "gravity", Vector3f.ZERO); in write()
660 capsule.write(getFriction(), "friction", 0.5f); in write()
661 capsule.write(getRestitution(), "restitution", 0); in write()
662 capsule.write(getAngularFactor(), "angularFactor", 1); in write()
663 capsule.write(kinematic, "kinematic", false); in write()
665 capsule.write(constructionInfo.linearDamping, "linearDamping", 0); in write()
666 capsule.write(constructionInfo.angularDamping, "angularDamping", 0); in write()
667 capsule.write(constructionInfo.linearSleepingThreshold, "linearSleepingThreshold", 0.8f); in write()
[all …]
/external/jmonkeyengine/engine/src/jbullet/com/jme3/bullet/collision/shapes/
DHeightfieldCollisionShape.java108 OutputCapsule capsule = ex.getCapsule(this); in write() local
109 capsule.write(heightStickWidth, "heightStickWidth", 0); in write()
110 capsule.write(heightStickLength, "heightStickLength", 0); in write()
111 capsule.write(heightScale, "heightScale", 0); in write()
112 capsule.write(minHeight, "minHeight", 0); in write()
113 capsule.write(maxHeight, "maxHeight", 0); in write()
114 capsule.write(upAxis, "upAxis", 1); in write()
115 capsule.write(heightfieldData, "heightfieldData", new float[0]); in write()
116 capsule.write(flipQuadEdges, "flipQuadEdges", false); in write()
121 InputCapsule capsule = im.getCapsule(this); in read() local
[all …]
DGImpactCollisionShape.java91 OutputCapsule capsule = ex.getCapsule(this); in write() local
92 capsule.write(worldScale, "worldScale", new Vector3f(1, 1, 1)); in write()
93 capsule.write(numVertices, "numVertices", 0); in write()
94 capsule.write(numTriangles, "numTriangles", 0); in write()
95 capsule.write(vertexStride, "vertexStride", 0); in write()
96 capsule.write(triangleIndexStride, "triangleIndexStride", 0); in write()
98 capsule.write(triangleIndexBase.array(), "triangleIndexBase", new byte[0]); in write()
99 capsule.write(vertexBase.array(), "vertexBase", new byte[0]); in write()
104 InputCapsule capsule = im.getCapsule(this); in read() local
105 worldScale = (Vector3f) capsule.readSavable("worldScale", new Vector3f(1, 1, 1)); in read()
[all …]
DMeshCollisionShape.java89 OutputCapsule capsule = ex.getCapsule(this); in write() local
90 capsule.write(numVertices, "numVertices", 0); in write()
91 capsule.write(numTriangles, "numTriangles", 0); in write()
92 capsule.write(vertexStride, "vertexStride", 0); in write()
93 capsule.write(triangleIndexStride, "triangleIndexStride", 0); in write()
95 capsule.write(triangleIndexBase.array(), "triangleIndexBase", new byte[0]); in write()
96 capsule.write(vertexBase.array(), "vertexBase", new byte[0]); in write()
101 InputCapsule capsule = im.getCapsule(this); in read() local
102 numVertices = capsule.readInt("numVertices", 0); in read()
103 numTriangles = capsule.readInt("numTriangles", 0); in read()
[all …]
DSimplexCollisionShape.java55 OutputCapsule capsule = ex.getCapsule(this); in write() local
56 capsule.write(vector1, "simplexPoint1", null); in write()
57 capsule.write(vector2, "simplexPoint2", null); in write()
58 capsule.write(vector3, "simplexPoint3", null); in write()
59 capsule.write(vector4, "simplexPoint4", null); in write()
64 InputCapsule capsule = im.getCapsule(this); in read() local
65 vector1 = (Vector3f) capsule.readSavable("simplexPoint1", null); in read()
66 vector2 = (Vector3f) capsule.readSavable("simplexPoint2", null); in read()
67 vector3 = (Vector3f) capsule.readSavable("simplexPoint3", null); in read()
68 vector4 = (Vector3f) capsule.readSavable("simplexPoint4", null); in read()
/external/jmonkeyengine/engine/src/bullet/com/jme3/bullet/collision/shapes/
DHeightfieldCollisionShape.java121 OutputCapsule capsule = ex.getCapsule(this); in write() local
122 capsule.write(heightStickWidth, "heightStickWidth", 0); in write()
123 capsule.write(heightStickLength, "heightStickLength", 0); in write()
124 capsule.write(heightScale, "heightScale", 0); in write()
125 capsule.write(minHeight, "minHeight", 0); in write()
126 capsule.write(maxHeight, "maxHeight", 0); in write()
127 capsule.write(upAxis, "upAxis", 1); in write()
128 capsule.write(heightfieldData, "heightfieldData", new float[0]); in write()
129 capsule.write(flipQuadEdges, "flipQuadEdges", false); in write()
134 InputCapsule capsule = im.getCapsule(this); in read() local
[all …]
DGImpactCollisionShape.java110 OutputCapsule capsule = ex.getCapsule(this); in write() local
112 capsule.write(numVertices, "numVertices", 0); in write()
113 capsule.write(numTriangles, "numTriangles", 0); in write()
114 capsule.write(vertexStride, "vertexStride", 0); in write()
115 capsule.write(triangleIndexStride, "triangleIndexStride", 0); in write()
117 capsule.write(triangleIndexBase.array(), "triangleIndexBase", new byte[0]); in write()
118 capsule.write(vertexBase.array(), "vertexBase", new byte[0]); in write()
123 InputCapsule capsule = im.getCapsule(this); in read() local
125 numVertices = capsule.readInt("numVertices", 0); in read()
126 numTriangles = capsule.readInt("numTriangles", 0); in read()
[all …]
DMeshCollisionShape.java107 OutputCapsule capsule = ex.getCapsule(this); in write() local
108 capsule.write(numVertices, "numVertices", 0); in write()
109 capsule.write(numTriangles, "numTriangles", 0); in write()
110 capsule.write(vertexStride, "vertexStride", 0); in write()
111 capsule.write(triangleIndexStride, "triangleIndexStride", 0); in write()
113 capsule.write(triangleIndexBase.array(), "triangleIndexBase", new byte[0]); in write()
114 capsule.write(vertexBase.array(), "vertexBase", new byte[0]); in write()
119 InputCapsule capsule = im.getCapsule(this); in read() local
120 numVertices = capsule.readInt("numVertices", 0); in read()
121 numTriangles = capsule.readInt("numTriangles", 0); in read()
[all …]
DSimplexCollisionShape.java55 OutputCapsule capsule = ex.getCapsule(this); in write() local
56 capsule.write(vector1, "simplexPoint1", null); in write()
57 capsule.write(vector2, "simplexPoint2", null); in write()
58 capsule.write(vector3, "simplexPoint3", null); in write()
59 capsule.write(vector4, "simplexPoint4", null); in write()
64 InputCapsule capsule = im.getCapsule(this); in read() local
65 vector1 = (Vector3f) capsule.readSavable("simplexPoint1", null); in read()
66 vector2 = (Vector3f) capsule.readSavable("simplexPoint2", null); in read()
67 vector3 = (Vector3f) capsule.readSavable("simplexPoint3", null); in read()
68 vector4 = (Vector3f) capsule.readSavable("simplexPoint4", null); in read()
/external/jmonkeyengine/engine/src/bullet-common/com/jme3/bullet/collision/shapes/infos/
DChildCollisionShape.java34 OutputCapsule capsule = ex.getCapsule(this); in write() local
35 capsule.write(location, "location", new Vector3f()); in write()
36 capsule.write(rotation, "rotation", new Matrix3f()); in write()
37 capsule.write(shape, "shape", new BoxCollisionShape(new Vector3f(1, 1, 1))); in write()
41 InputCapsule capsule = im.getCapsule(this); in read() local
42 location = (Vector3f) capsule.readSavable("location", new Vector3f()); in read()
43 rotation = (Matrix3f) capsule.readSavable("rotation", new Matrix3f()); in read()
44 …shape = (CollisionShape) capsule.readSavable("shape", new BoxCollisionShape(new Vector3f(1, 1, 1))… in read()

1234