tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.GameContent.Golf.GolfHelper.ContactListener Class Reference

Inherits Terraria.Physics.IBallContactListener.

Public Member Functions

void OnCollision (PhysicsProperties properties, ref Vector2 position, ref Vector2 velocity, ref BallCollisionEvent collision)
 
void OnPassThrough (PhysicsProperties properties, ref Vector2 position, ref Vector2 velocity, ref float angularVelocity, ref BallPassThroughEvent collision)
 
void PutBallInCup (Projectile proj, BallCollisionEvent collision)
 
void OnCollision (PhysicsProperties properties, ref Vector2 position, ref Vector2 velocity, ref BallCollisionEvent collision)
 
void OnPassThrough (PhysicsProperties properties, ref Vector2 position, ref Vector2 velocity, ref float angularVelocity, ref BallPassThroughEvent passThrough)
 

Static Public Member Functions

static void EmitGolfballExplosion (Vector2 Center)
 
static void EmitGolfballExplosion_Old (Vector2 Center)
 
static void EmitGolfballExplosion_v1 (Vector2 Center)
 
static void PutBallInCup_TextAndEffects (Point hitLocation, int plr, int numberOfHits, int projid)
 

Member Function Documentation

◆ OnCollision()

void Terraria.GameContent.Golf.GolfHelper.ContactListener.OnCollision ( PhysicsProperties  properties,
ref Vector2  position,
ref Vector2  velocity,
ref BallCollisionEvent  collision 
)

◆ OnPassThrough()

void Terraria.GameContent.Golf.GolfHelper.ContactListener.OnPassThrough ( PhysicsProperties  properties,
ref Vector2  position,
ref Vector2  velocity,
ref float  angularVelocity,
ref BallPassThroughEvent  collision 
)