Hi everybody!
Does someone know if it’s possible to create a pivot or a constriction point and hanging an object like a rope or a picture on a wall?
I tried simulating a sort of hook, but unfortunately it’s impossible to create groups of objects with the collision edge more complex then 4 sides
If you hit the "Command" key on an element you'll see a center point that you can drag to set the rotation center of the element.
Cool thanks.
but I was wondering if it’s possible doing something like this:
but not animating it by the timeline, but using gravity and physics
1 Like
gasspence
(Greg)
November 16, 2015, 12:55pm
4
Not that I know of, sorry
rene
(René)
November 16, 2015, 7:06pm
5
It’s possible. I build something like this with the accelerometer that changes the rotation. The only thing is that the rope is a long static thing and it wil not bounce.
Hi Renè,
It could be enough for me!
In fact I don’t need to animate a rope, but just stuff hanging on a wall.
If you find the your project, can you please attach it here to help me and the next one?
Thanks!
1 Like
rene
(René)
November 17, 2015, 7:09am
7
You can achieve this with the device orientation, more about that overhere .
Hi Renè thanks a lot, but apparently I have not access to your project page.
“Sorry, you don’t have access to that topic!”
Do you know perhaps why, or I should ask to an administrator?
Thanks
rene
(René)
November 17, 2015, 12:04pm
9
You can download a example project overhere:
lamp-device-orientation.zip (13.5 KB)
It uses eventData.beta so it only works in landscape mode.
Hi Renè,
thanks it’s working perfectly.
I was just trying to use it in portrait but the behaviour looks weird.
window.addEventListener('deviceorientation', function(eventData) {
var vBeta = eventData.alpha
var vWindowOrientation = window.orientation;
if (vWindowOrientation == 0){
vBeta = vBeta * 1;
};
vLamp.style.webkitTransform = 'rotate(' + vBeta + 'deg)';
});
In portrait it works much better using "gamma"
Really I don’t know why
Hi Everyone!
I was curious to know if you may know of a way to use device orientation to control a timeline?
Thanks!
Logan
Daniel
April 4, 2016, 7:23pm
14
Do you mean device tilt? Or switching from portrait to landscape?
Hey Daniel,
Device tilt to advance or reverse a timeline. Much in the same way the device tilt can move the lamp.
Thanks!!
Logan