public final class Lightning
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
protected void |
create()
Create
|
protected void |
destroy()
Destructor
|
void |
getDirection(Vec3 dst)
Get ray direction
|
float |
getIntensity()
Get lightning intensity
|
float |
getLength()
Get ray length
|
void |
getPosition(Vec3 dst)
Get lightning position
|
boolean |
isFinished()
Has the ray finished?
|
protected void |
remove()
Remove
|
protected void |
update(float timeSinceLastFrame)
Update
|
protected void destroy()
protected void create()
protected void remove()
protected void update(float timeSinceLastFrame)
timeSinceLastFrame - Time since last framepublic void getDirection(Vec3 dst)
public float getLength()
public float getIntensity()
public boolean isFinished()
public void getPosition(Vec3 dst)
Bonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com