Confetti  0.1.0
A C++ particle system using Vulkan
Public Member Functions | Public Attributes | List of all members
Confetti::Environment::Surface Struct Reference

A plane that the particles bounce against. More...

#include <Confetti/Environment.h>

Public Member Functions

 Surface (glm::vec4 const &p, float d)
 

Public Attributes

glm::vec4 plane = glm::vec4(1.0f, 0.0f, 0.0f, 1.0f)
 The plane.
 
float dampening = 1.0f
 Ratio of post-bounce velocity to pre-bounce velocity. More...
 

Detailed Description

A plane that the particles bounce against.

Member Data Documentation

◆ dampening

float Confetti::Environment::Surface::dampening = 1.0f

Ratio of post-bounce velocity to pre-bounce velocity.