Jump to content

Pick not working ?


YouGroove
 Share

Recommended Posts

I use pick function, but it don't react to the prop objects when some of their faces are hit by the ray ?

 

 

    local p1 = self.posRayL
           p1.y = p1.y + 100 
           if self.entity.world:Pick(p1, self.posRayL , pickInfo, 0, true) then
		  ..... 
	    end 

 

(I have visual sphere to debug and see the begin and start positions of the pick)

 

 

 

Are all objects Props to mode 0 by default ? ( SetPickMode(0) )

Or it is some 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...