Page 1 of 1

Parenting & Collision

PostPosted: Fri Mar 25, 2005 7:56 pm
by matthornb
I have a situation in my minigolf game in which each ball actor is a parent of another actor (a putter).

There are a maximum of four players, each with a ball and putter.

At the beginning of a turn, the putter is visible and can be rotated around the ball in a 360-degree circle.

When the player hits the ball, the putter goes transparent until that player's turn cycles around again.

I'm trying to implement physical response when a player hits another player's ball.

Unfortunately, when a ball (i.e. "ball1") is set to respond to a collision with one of the other balls, it responds to the (temporarily transparent) putter as well.

I tried setting the putters' Collision State to "Disable", this unfortunately did nothing.

Is there any way to make the collisions work without unparenting the putters and balls?

PostPosted: Sat Mar 26, 2005 12:25 am
by yep
why the hell are you using parent?

just do it as normal actors

PostPosted: Sat Mar 26, 2005 1:52 am
by Just4Fun
Matt:

I'm having trouble understanding why the "Collision State" -->Disable isn't working for you. Did you try changing the Collision State Actor: "Event Actor" to your Actor's name? It seems like the "Collision State" Action would be the best way to go. You might also try isolating the Collision Events by naming each Actor separately in the Event rather than just using "Event Actor"...

Have you tried the "Disable Event" Action?
You might be able to use it while the actor is transparent and then use the "Enable Event" again when the Actor becomes visible.

I'm not sure if this will do the trick, but it might be worth a try.