Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

One Advice

edited March 2012 in Suggestions Posts: 49

Hi i have a advice in the example 3D Lab is more easy to muve pasting this code in the draw function:

Angle = CurrentTouch.x
CamHeight = CurrentTouch.y
Tagged:

Comments

  • Posts: 273

    @Juanjo56

    Nice! Thanks!

  • SimeonSimeon Admin Mod
    Posts: 5,054

    Yeah nice tip, @Juanjo56 !

    Actually, if you want to make it a little less jumpy, you can do this:

    Angle = Angle + CurrentTouch.deltaX
    CamHeight = CamHeight - CurrentTouch.deltaY
    
  • Posts: 49

    Ow yes like this:


        if CurrentTouch.state == MOVING then         Angle = Angle + CurrentTouch.deltaX         CamHeight = CamHeight - CurrentTouch.deltaY     end
  • Posts: 41

    Nice addition! (Also cool that in Simeon's version, the scene keeps moving/spinning after the touch...though it's actually tough to get it to stay still.)

    Okay now, what's the code to add pinch to adjust FieldOfView?

Sign In or Register to comment.