Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't lock on unless directly facing #11

Open
JDylan1396 opened this issue Jun 30, 2020 · 2 comments
Open

Can't lock on unless directly facing #11

JDylan1396 opened this issue Jun 30, 2020 · 2 comments

Comments

@JDylan1396
Copy link

When using the plug-in, I am unable to lock on to the enemy AI unless I am facing directly at the AI. Is this is the desired result? I'd like to be able to not be facing with my character and lock on to the AI, only having the camera face the AI and trigger the lock on.

@mklabs
Copy link
Owner

mklabs commented Jul 2, 2020

I don't understand your issue. The default behaviour does that, it only checks if the actor you're trying to target is not hidden by an obstacle and is in the viewport. The rotation of your player character doesn't matter.

Example in a sample project:

like this

Is not that what you're looking for ? That should be what you get with the default settings.

@josator
Copy link
Contributor

josator commented Aug 7, 2020

I found that if the object you are trying to target is a flat surface you will only be able to target it from one side. I fix this by creating objects with volume where you can't see the inside and all normals point outside.
If this is the case this has to do with ray trace and flat models without volume, not the plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants