Questions tagged [tilt]

Tilt is a thin interface over a collection of Ruby template engines, that attempts to make their usage as generic possible.

118 questions
1
vote
2 answers

Making ball roll with iphone being tilted using Accelerometer

I am making an iphone app where a ball will roll around the screen based on how the user tilts the device. If the device is lies flat on the table theoretically the ball would not move. If the device is tilted standing completely upward the I want…
Carney
  • 31
  • 3
1
vote
1 answer

Unity C# device movement direction capture

Good day. I want to make an app which is somewhat very close to the device movement. In example: If the device moves backward, the unity 3D object should move backward, if forward then the object goes forward in 3D environment, then same and for…
Jean Allen
  • 63
  • 3
  • 14
1
vote
1 answer

OpenCV get image rotation and tilt ,inclination

Hi all anyone has any idea on how to get image rotation and tilt with respect to the vertical image in OpenCV for example here IMAGE how can a get alfa end tilt(inclination) with respect to the recognized image Thx
Ares91
  • 506
  • 2
  • 8
  • 27
1
vote
1 answer

Using alternative templating with Middleman

I would like to use Liquid templates with Middleman rather than the default ERb. I know I need to go into config.rb and require it but i'm not sure of the exact syntax I need to use in config.rb to achieve this. I am also unsure of whether I need to…
olliew
  • 183
  • 1
  • 7
1
vote
1 answer

Google Cardboard Unity SDK Tilted not working on a device

I'm trying to make an app that responds to the Cardboard.SDK.Tilted flag in some Update() method. When running in Unity Player, by pressing the Esc button, Cardboard.SDK.Tilted is set to true, so here's all good. But when i Build the app for…
Tomislav
  • 105
  • 6
1
vote
2 answers

Android App: How to get screen tilt?

I am coding an app for Android and I was wondering how to get the screen tilt? For example: If the user tilts the screen to the right, I want their character (in-game) to move to the right. If they tilt it to the left, I want the character in the…
1
vote
1 answer

Android orientation: azimuth depends on pitch and roll

Problem: azimuth value changes when pitch or roll change even if the device orientation is still the same; I need to get stable independent azimuth and pitch: tilt should not affect yaw. I've already read and tested all solutions proposed here with…
abe65xt
  • 11
  • 2
1
vote
3 answers

How to draw a bitmap to another, but into a given quadrilateral (not necessary a rectangle)?

Suppose I have 2 bitmaps. One is smallBitmap, and one is largeBitmap. I want to draw the entire smallBitmap into largeBitmap, but only to a part of largeBitmap, and not in a straight regtangle, but into a quadrilateral instead. I think a sketch will…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
1
vote
1 answer

Rails - How to find tilt version?

Gem tilt is used with sprockets for Rails assets precompile. We are having hard time to find the version running on our Rails 4 app as tilt --version returns version unknown: $ tilt --version tilt: version unknown tilt --help give no info about how…
user938363
  • 9,990
  • 38
  • 137
  • 303
1
vote
0 answers

Who to limit Sprite with tilt control, to screen boundaries?

Im trying to limit a Sprite to screen edges. I'm using this script from unity manual and i've added a clamp to its movement. The issue is that the screen bounded is different with each resolution, and i cant figure out how to use…
WingOne
  • 13
  • 4
1
vote
1 answer

Generating a UIColor with arguments tilt value data in swift

I'm trying to make an app which will change the colour of the background based on the tilt angle of the device. I'm having no problem finding the tilt values of the device, I just can't seem to use the tilt values as parameters in a UIColor. I have…
Matt Spoon
  • 2,760
  • 5
  • 25
  • 41
1
vote
0 answers

turn maze / tilt maze generation algorithm

**I have generated maze using dfs. I followed this alogorithm create a CellStack (LIFO) to hold a list of cell locations set TotalCells = number of cells in grid choose a cell at random and call it CurrentCell set VisitedCells = 1 while…
Ishan
  • 1,172
  • 10
  • 25
1
vote
1 answer

Chaining multiple engines (coffeescript and jsx) using Middleman

Using Middleman, how can I chain multiple file extensions for processing by multiple engines? Middleman handles CoffeeScript out of the box, and I have gem middleman-react in my Gemfile and activate :react in my config.rb. Processing regular jsx…
doctororange
  • 11,670
  • 12
  • 42
  • 58
1
vote
1 answer

How to tilt compensate my magnetometer ? Tried a lot

I try to tilt compensate a magnetometer (BMX055) reading and tried various approaches I have found online, not a single one works. I atually tried almost any result I found on Google. I run this on an AVR, it would be extra awesome to find…
John
  • 7,507
  • 3
  • 52
  • 52
1
vote
0 answers

How to use literate coffeescript with rails?

I would expect simply changing the name from "foo.js.coffee" to "foo.js.litcoffee" or "foo.js.coffee.md" to work, but sadly no. There is a sprockets issue. Which suggests I should be able to do this in an initializer: Sprockets.register_engine…