• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Scene Kit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scene Kit


  • Subject: Re: Scene Kit
  • From: Thomas Cunningham <email@hidden>
  • Date: Sat, 20 Oct 2012 12:44:40 -1000

>> How (as in by which amounts) are you modifying the properties to arrive at those mixed results? Why are they not what you want? What do you actually want?

I want to know what properties I should be adjusting to simulate a zoom in and a zoom out.

Using the Scene Kit Fun project, I place this code in the mousedown event, distance is an ivar that is set to 45.

    self->distance = self->distance - 5.0;
    camera.xFov = distance; // degrees
    camera.yFov = distance;
    [self setNeedsDisplay:YES]; // just in case it needs refreshing

On the first click it zooms in fine, subsequent clicks are ignored, no zoom in, values are correctly reflected in the log.

--
Thomas C.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Scene Kit
      • From: Daniel Vollmer <email@hidden>
  • Prev by Date: Re: NSOperation and waitUntilFinished
  • Next by Date: Re: NSOperation and waitUntilFinished
  • Previous by thread: Re: Scene Kit
  • Next by thread: Re: Scene Kit
  • Index(es):
    • Date
    • Thread