tModLoader v2024.08
A mod to make and play Terraria mods
GolfHelper.ContactListener Class Reference

Inherits 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 GolfHelper.ContactListener.OnCollision ( PhysicsProperties  properties,
ref Vector2  position,
ref Vector2  velocity,
ref BallCollisionEvent  collision 
)

Implements IBallContactListener.

◆ OnPassThrough()

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

Implements IBallContactListener.