About Store Forum Documentation Contact
Donations:
227$/mo



Post Reply 
PhysCutsCallback user
Author Message
fatcoder Offline
Member

Post: #1
PhysCutsCallback user
The hit function in PhysCutsCallback has a user parameter. However it is always NULL. What controls the user parameter? For example, I want to know which actor made the cuts() call that triggered the hit, so I want to set the user to the calling actor object before calling the cuts functions.

I've tried setting user() and obj() on the calling actor, but user in hit() is still NULL.
01-12-2013 12:10 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: PhysCutsCallback user
user in the callback is the Actor.user() of the actor that the hit was encountered with

You can store custom params in the extended class of PhysCutsCallback object
01-12-2013 03:45 PM
Find all posts by this user Quote this message in a reply
fatcoder Offline
Member

Post: #3
RE: PhysCutsCallback user
Ok, makes sense. I thought to store custom parameters in the extended class, but just wanted to check first.
01-12-2013 11:51 PM
Find all posts by this user Quote this message in a reply
Post Reply