void prepareHapticRendering() { HL.hlTouchableFace(touchableMode); HL.hlMaterialf(HL.HL_FRONT_AND_BACK, HL.HL_STIFFNESS, stiffness); HL.hlMaterialf(HL.HL_FRONT_AND_BACK, HL.HL_DAMPING, damping); HL.hlMaterialf(HL.HL_FRONT_AND_BACK, HL.HL_STATIC_FRICTION, staticFriction); HL.hlMaterialf(HL.HL_FRONT_AND_BACK, HL.HL_DYNAMIC_FRICTION, dynamicFriction); }
@Override public void dispose() { super.dispose(); if (shapeId != -1) HL.hlDeleteShapes(shapeId, 1); }
public int getShapeId() { if (shapeId == -1) { shapeId = HL.hlGenShapes(1); } return shapeId; }