Icon

IOS 3D Touch Extension

Pixel Ape Studios

You must be logged in to obtain assets

Description

  • This extension is now free as I don't have access to 3D Touch enabled device anymore, thus cannot provide developer support *

3D Touch was the next generation touch feature introduced by Apple in 2015 and even though currently only on iPhone 6s and 6s plus, we will be able to see it in all the future iPhones. Apple has also shown great interest in Apps and games that used 3D touch functionality as fun new experience and has gone ahead to feature such games heavily in the app store.

This extension allows you to enable 3D touch detection in your game on 3D Touch enabled devices IPHONE 6S and IPHONE 6S PLUS.

Example Project included

FUNCTIONS

  • IOSForceTouch_hasForceTouch()
  • IOSForceTouch_getMaximumForce()
  • IOSForceTouch_getRawForce()
  • IOSForceTouch_getForceQuotient()
  • IOSForceTouch_getControlledForceQuotient ()

WHAT EACH FUNCTION DOES

IOSForceTouch_hasForceTouch - returns 1 if supported,0 if not supported or not enabled

IOSForceTouch_getMaximumForce - Maximum Force possible. Usually 6.67

IOSForceTouch_getRawForce - Raw Force value from returned from device. Minimum Raw Force is 1

IOSForceTouch_getForceQuotient - Force quotient of the applied force and maximum force. Always between 0 and 1 ex : 0.5 means half way down the maximum force allowed

IOSForceTouch_getControlledForceQuotient - A controlled version of force quotient. Usually when a user starts releasing the finger after a force touch, IOS continues to read the force till the finger has lost full contact with the screen. Use this value if that is not the desired behaviour for your game. This value adds a timer to touch so that force reduction is controlled. Do not use this method if you require smoother decrease of touch force. Another Alternative to this function is to add your own logic based on the Raw Force and Maximum Force, that will suit your game better.

More info

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS1 - Version 1.0.2. Published June 18, 2016

  • Fixed extension not being imported properly
Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait