int nbResponseLeft
Number of remaining rays to launch.
Shape * shape
The impact primitive.
vec3 from
Direction vector of the incoming ray.
virtual vec3 getNormal(const vec3 pos=vec3())
Get normal.
virtual bool getResponse(vec3 &r, bool force=false)
Return a direction vector for the impact. Ray direction vector in response of the event.
virtual double getAngle()
Get incident angle.
base_vec3< decimal > vec3