Skip to main content

IShootable

An interface in Root.Township, the global namespace.

A projectile a bow can fire, such as Arrow or a light beam. Used by ExtraArrowUpdater for extra arrows.

Properties​

MemberWhat it is
NetworkEntity Entity { get; }The projectile's network entity.
Rigidbody Rigidbody { get; }The projectile's rigidbody; kept kinematic while it rides on the bow.
Transform transform { get; }The projectile's transform.

Methods​

MemberWhat it is
void Shoot(Vector3 velocity)Launches the projectile with the given velocity.

Used in​

Members of other types that take, return or hold a IShootable: