Changeset 3950236 in opengl-game for vulkan-game.hpp


Ignore:
Timestamp:
Apr 19, 2020, 3:39:41 AM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
7297892
Parents:
1f81ecc
Message:

Make a laser stop when it hits an asteroid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.hpp

    r1f81ecc r3950236  
    9696   vec3 center; // currently only matters for asteroids
    9797   float radius; // currently only matters for asteroids
     98   SceneObject<AsteroidVertex, SSBO_Asteroid>* targetAsteroid; // currently only used for lasers
    9899};
    99100
     
    271272      void addLaser(vec3 start, vec3 end, vec3 color, float width);
    272273      void translateLaser(size_t index, const vec3& translation);
     274      void updateLaserTarget(size_t index);
     275      bool getLaserAndAsteroidIntersection(SceneObject<AsteroidVertex, SSBO_Asteroid>& asteroid,
     276            vec3& start, vec3& end, vec3& intersection);
    273277
    274278      // TODO: Since addObject() returns a reference to the new object now,
Note: See TracChangeset for help on using the changeset viewer.