Added: 3 years ago
From: kjlg74
Views: 1,362
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (1)

Sign In or Sign Up now to post a comment!
  • Actually, I took a demo program (called "playground") that combined OPAL physics and OGRE graphics, and just changed the code and added lots of my own to make this program.

    That picking-up ability was already coded into the demo, so I just used it without having a close look at how it was done. I think (though I'm not 100% sure) it uses a ray sensor to find the point on the surface directly ahead, and then some kind of spring line connected to a tiny sphere that says in front of the camera.

  • haha.pretty good.How did you implement picking objects? Did you use rays?

  • Minor correction: the "tiny sphere" in front of the camera is actually an overlay (so it won't get obscured). The spring line must just connect to some point in space that stays in front of the camera (at a distance determined when the object is first picked up).

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more