BArtisan.Thrusters.Applied Namespace Reference

Detailed Description

The namespace contains all the thrusters that apply force to other objects, that came in contact or collide with the thrusters.

The most common implementations are:

  • simple attract/repel forces (based on colliders, ex magnet/gravity)
  • effects like Wind/tornados
  • physical derived game mechanics

Classes

class  BThrusterAppliedCollider
 While the "regular" thrusters move only a specific GameObject, the Applied thrusters move all the objects, except the attached one. More...
 
class  BThrusterBaseApplied
 It is the base class for all Applied thrusters, it contains all the common logic and properties. More...
 

Enumeration Type Documentation

◆ ForceAppliedTypeRange

You can control how the force is applied, depending on the distance between the thruster and the affected GO.

Enumerator
Constant 

It ignores the distance between objects, it applies the same force, always

BorderIsStronger 

it applies the full Thrusters force on the edge of the colliding sphere, and no force when the affected GO is in the center. The "attraction" is stronger when the distance is larger.

CenterIsStronger 

It applies the least amount of force on the edge of the colliding sphere, and the full strength when the affected GO is at the same position with the thruster. The "attraction" is stronger when the distance is 0.

◆ ForceAppliedTypeDirection

You can choose the heading of the applied force.

Enumerator
Push 

It tries to increase the distance between the thruster and the affected GO

Pull 

It tries to bring all the affected GO near him.