Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Raise a rectangular platform
Started by eloysn Jul 22 2018 07:37 AM

5 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

eloysn

[GLOBAL: userInfoPane.html]
eloysn
  • Observer

  • 15 posts
  • Corona SDK

hello, I need to climb a rectangular platform, which occupies the entire width of the screen, I need to climb up from the ends, ie I climb on one side and while the other side remains fixed, just rotary, it occurs to someone who could do it, thanks 



[TOPIC: post.html]
#2

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,363 posts
  • Corona SDK

I'm not clear on what you're asking for.

 

Can you show us an example?  Maybe a video link with a timestamp for the action you are trying to replicate? 



[TOPIC: post.html]
#3

eloysn

[GLOBAL: userInfoPane.html]
eloysn
  • Observer

  • 15 posts
  • Corona SDK

Of course, I send a video with what I intend.
The idea is to raise the red rectangular base of the ends, so it will rotate on one side while on the other side it will rise on the X-axis.


[TOPIC: post.html]
#4

eloysn

[GLOBAL: userInfoPane.html]
eloysn
  • Observer

  • 15 posts
  • Corona SDK

Attached File  demo.mov   832.95KB   8 downloads



[TOPIC: post.html]
#5

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,363 posts
  • Corona SDK

x-axis?  I think you've got your axes mixed up.

 

x-axis if left-right

y-axis is up-down

 

You mean like this?

 



[TOPIC: post.html]
#6

roaminggamer

[GLOBAL: userInfoPane.html]
roaminggamer
  • Corona Geek

  • 7,363 posts
  • Corona SDK

The easiest way I can think to make a mechanic like the 'board' in teeter is to:

 

First, detect if a touch if left or right of the x-axis center on the 'board'.

 

Second, if the touch is left of center create a temporary pivot join in the vertical center near the right edge of the board.  If the touch is right of center, do the opposite.

 

Third, attach a touch joint at the touch point and allow the user to drag the board around, pivoting on the other joint.

 

Fourth, when the touch is released, remove both joints.

 

 

Finally, to make this work the body may need to be kinematic, but then switched to dynamic during the touch/drag, and put back to kinematic on release.

 

Note: I think you want to do this on your own, and I think this steps I provided will work.  However, if you just want a solution and/or can't get there on your own, I offer a service for this kind of help: https://forums.coronalabs.com/topic/69420-hire-a-hitman-problem-solver-is-back/


Edited by roaminggamer, 22 July 2018 - 09:44 AM.



[topic_controls]
[/topic_controls]