Difference between revisions of "GeRay"
From GriffinEngine
m (1 revision imported) |
|
(No difference)
|
Latest revision as of 06:38, 19 November 2017
Usage
The geRay class creates a ray which can be shot out in a direction. It consists of a position, direction and height .
Reference
Fields
Pos is the origin of the ray. Dir is the direction is goes from that origin and z is the height. although it is called z, the point is actually on the y axis.
- float2 pos
- float2 dir
- float z
Constructors
- geRay(float2 inPos,float2 inDir,float inZ)
Accessors
Standard getters and setters.
- float2 getPos()
- float2 getDir()
- float getZ()
- void setPos(float2 inPos)
- void setDir (float2 inDir)
- void setZ(float inZ)
Methods
The intersects functions are for detecting intersections between either a box or a sphere.
- bool intersects(geBoundingSphere that);
- bool intersects(geBoundingBox that);
Core |
---|
geGame · geState · GriffinEngine.h |
geBoundingBox · geBoundingSphere · geIState · geNullNode · geObject · geObject3D · geRay · geSceneGraph |