有效時間長、安全性高,同時能有效改善患者的心理及晨勃現象,同時犀利士不受高脂飲食和適度酒精攝入的影響,安全放心,想愛就愛。

3D Steering and Collision Avoidance

Platform:

    Unity3D Mac/PC Standalone

Synopsis:

    Experiment in 3D flight, procedurally generated content, and complex steering AI with lots of independent actors.

Features:

  • Procedurally generated terrain using a diamond-square algorithm.
  • Used steering forces to direct character motion.
  • Shown behaviors are: 3d wandering, 3d unaligned collision avoidance, following, 3d obstacle avoidance, dynamic terrain avoidance, simple orbiting.
  • Implemented prioritized Monte Carlo logic for behavior decisions.
  • Coded live camera that rotates with mouse input.
  • Utilized octrees and vector math to make behaviors more efficient.

Legend:

  • Small triangular spaceships — 3D wanderers
  • Large double-thruster ships — Orbits about the box’s central z-axis, with some y variation
  • Circular platforms – Follows the orbiting large ships in a line, with sinusoid y variation
  • All ships avoid obstacles and terrain, as well as stay contained in the box. Ships will turn away from obstacles smartly based on their orientation and position in relation to the obstacle. Same for terrain.

Controls:

  • Spacebar — Pause all actors (except camera spaceship)
  • Main Camera Mode:
    • Mouse-over edges — Rotate camera about the center of the box
    • Mouse-wheel — Zoom in and out
  • Spaceship Mode:
    • I — Thrust forward
    • I + WASD — Change direction

Oops! The Unity Webplayer is no longer available!

Sorry for the inconvenience! Google Chrome has disabled the Unity Webplayer plugin, so I can no longer embed the Webplayer version without causing Google Chrome users to auto-download the project every time they open the webpage (which is super annoying; I’ve been there!). Thanks for understanding.
If you are NOT using Google Chrome please view the Webplayer version here.
Otherwise, please switch browsers and use the link above.

Screenshot of a 3D collision detection project set in space.