About Store Forum Documentation Contact



Post Reply 
Physics.ray / AG_DEFAULT
Author Message
Driklyn Offline
Member

Post: #1
Physics.ray / AG_DEFAULT
I can't seem to be able to detect objects using AG_DEFAULT with Physics.ray anymore. If I change their actor groups to a value of 1 instead of a value of 0 (AG_DEFAULT), it works.

Obviously this used to work, so either something must have changed in a recent update to the engine or I am somehow doing it wrong (which is unlikely since it works with any value other than AG_DEFAULT).
07-22-2011 07:50 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: [Possible Bug] Physics.ray / AG_DEFAULT
I didnt change anything.

how do you call Physics.ray?
there is a parameter that specifies which groups should be included

also do these objects have Actor::ray enabled?
07-23-2011 01:16 PM
Find all posts by this user Quote this message in a reply
Driklyn Offline
Member

Post: #3
RE: Physics.ray / AG_DEFAULT
I figured it out just now while writing my reply.

I forgot to disable ray tests on the actor you are controlling (which is using AG_DEFAULT), so Physics.ray detects this actor immediately when testing for AG_DEFAULT and doesn't when testing for any other group.

Turns out it was user error pfft
07-23-2011 08:09 PM
Find all posts by this user Quote this message in a reply
Post Reply