Jump to content

Is it possible to check if i hit an object that...?


Xeonmeister

Recommended Posts

Posted

Hi.

Is it possible to check if i hit an object that has no collision? I tried 'processLineOfSight' but it seems not to detect whenever I shoot an object which has no collision.

Posted

I found out that what i want is impossible but i ask it: Is it possible with the default world? I mean if an object is so far away that it doesn t have have collision. I can t do anything to it then right?

Posted

Hitting something without a collision is impossible without any workaround. You can add a colshape around it and attach some default data to it, you can also just create your own collision files in 3Ds max or something like that.

If you want to go for a cheap solution; add an object with a collision on the same location and make it's opacity/alpha 0. This'll hide the object, yet still fix the collision thing. If you're rendering in the faaaaaar distance, hitting it would be harder but not impossible.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...