Jump to content

Pick() not working for GotoPoint(), Follow()


YouGroove
 Share

Recommended Posts

Hi,

 

After thousand of tests and a long discussion, we have a new bug :

http://www.leadwerks.com/werkspace/topic/11975-pick-how-to-use-it/

 

We have a mob moving to the player using gotoPoint().

This mob calls Pick() every frame with parameters it's position and player position, to detect the player using raycast.

Pick() don't work if the mob that is moving is not facing the player , or if the player turns around.

 

how to test :

-copy the map on your "Maps" directory

-copy the scripts in "Scripts/Objects"

- run the game

 

You will have the blue ball on your player character each time the mob detects you using Pick().

Turn and move around the mob to see the blue ball no more on the player as Pick() don't work if the mob is not facing the player and if it is moving (GotoPoint() call).

debug.zip

Stop toying and make games

Link to comment
Share on other sites

  • 2 weeks later...

I think this issue has nothing really to do with Y Values.

 

It just does not correctly work for Character Controllers.

 

That has probably something to do that the Character Controller is not a real newton physics object (at least that is what Josh explained a long time ago if i remember correctly)

And only parent objects that are not a character controller get picked by a raycast.

 

In my RTS project i had to parent the model anyway to correctly roate it so i didn´t really noticed that issue.

Link to comment
Share on other sites

Using a simple hitbox solved this for me.

Where did you attached the hit box ? to a bone ?

Can raycast detect the box if it is a child of a bone ?

 

-------------------------

 

Anyway why using character controller collision if it can't be used for any collision detection ?

Or put the option to create hit boxes for characters and rayscat in the model editor.

 

This is still a bug.

Stop toying and make games

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...