Add this class to a weapon and it'll project a laser ray towards the direction the weapon is facing
More...
|
virtual void | LaserActive (bool status) |
| Turns the laser on or off depending on the status passed in parameters More...
|
|
Add this class to a weapon and it'll project a laser ray towards the direction the weapon is facing
◆ Initialization()
virtual void MoreMountains.CorgiEngine.WeaponLaserSight.Initialization |
( |
| ) |
|
|
protectedvirtual |
◆ LaserActive()
virtual void MoreMountains.CorgiEngine.WeaponLaserSight.LaserActive |
( |
bool |
status | ) |
|
|
virtual |
Turns the laser on or off depending on the status passed in parameters
- Parameters
-
status | If set to true status. |
◆ ShootLaser()
virtual void MoreMountains.CorgiEngine.WeaponLaserSight.ShootLaser |
( |
| ) |
|
|
protectedvirtual |
◆ Start()
virtual void MoreMountains.CorgiEngine.WeaponLaserSight.Start |
( |
| ) |
|
|
protectedvirtual |
◆ Update()
virtual void MoreMountains.CorgiEngine.WeaponLaserSight.Update |
( |
| ) |
|
|
protectedvirtual |
Every frame we draw our laser
◆ _destination
Vector3 MoreMountains.CorgiEngine.WeaponLaserSight._destination |
|
protected |
◆ _direction
Vector3 MoreMountains.CorgiEngine.WeaponLaserSight._direction |
|
protected |
◆ _hit
RaycastHit2D MoreMountains.CorgiEngine.WeaponLaserSight._hit |
|
protected |
◆ _laserOffset
Vector3 MoreMountains.CorgiEngine.WeaponLaserSight._laserOffset |
|
protected |
◆ _line
LineRenderer MoreMountains.CorgiEngine.WeaponLaserSight._line |
|
protected |
◆ _origin
Vector3 MoreMountains.CorgiEngine.WeaponLaserSight._origin |
|
protected |
◆ _weapon
Weapon MoreMountains.CorgiEngine.WeaponLaserSight._weapon |
|
protected |
◆ _weaponPosition
Vector3 MoreMountains.CorgiEngine.WeaponLaserSight._weaponPosition |
|
protected |
◆ _weaponRotation
Quaternion MoreMountains.CorgiEngine.WeaponLaserSight._weaponRotation |
|
protected |
◆ LaserCollisionMask
the collision mask containing all layers that should stop the laser
◆ LaserMaterial
Material MoreMountains.CorgiEngine.WeaponLaserSight.LaserMaterial |
the material used to render the laser
◆ LaserMaxDistance
float MoreMountains.CorgiEngine.WeaponLaserSight.LaserMaxDistance = 50 |
the maximum distance to which we should draw the laser
◆ LaserOriginOffset
Vector3 MoreMountains.CorgiEngine.WeaponLaserSight.LaserOriginOffset |
the origin of the visible laser
◆ LaserWidth
Vector2 MoreMountains.CorgiEngine.WeaponLaserSight.LaserWidth = new Vector2(0.05f, 0.05f) |
◆ RaycastOriginOffset
Vector3 MoreMountains.CorgiEngine.WeaponLaserSight.RaycastOriginOffset |
the origin of the raycast used to detect obstacles
◆ LaserDestination
Vector3 MoreMountains.CorgiEngine.WeaponLaserSight.LaserDestination |
|
get |
the world space coordinates of the laser's destination point
◆ LaserOrigin
Vector3 MoreMountains.CorgiEngine.WeaponLaserSight.LaserOrigin |
|
get |
the world space coordinates of the laser's origin point
The documentation for this class was generated from the following file: