This is where fixed bugs can be seen. Please do not post new bugs into this forum, it is purely to see what has been fixed and most topics will be locked.

Rayhit

Rayhit

Postby ant0N » 04 May 2015, 07:54

Hi! :) I have two problems:
1. rayFromEntityToEntity not working.
2. rayFromPointToPoint entity does not catch.
more info in the video.
Sorry for my English. :)
User avatar
ant0N
Skyline Moderator
Skyline Moderator
 
Posts: 415
Joined: 02 Nov 2012, 12:49
Location: Россия, Москва
Skill: Programmer
Skill: 3D Modeller

Re: Rayhit

Postby TattieBoJangle » 04 May 2015, 07:58

Video is private m8 ;)
Case: CM Storm Trooper CPU: I7 5930k X99 Cooler: Noctua NH-D15 Graphics: Asus GTX 1080 Motherboard: Rampage Extreme V x99 Ram: RipJaws DDR4 3000mhz Storage: x2 SSD Crucial 500GB + x5 2TB Hdd PSU: Evga 1500w OS: Windows 10
User avatar
TattieBoJangle
Community Manager
Community Manager
 
Posts: 858
Joined: 26 Jan 2015, 00:15
Location: United Kingdom
Skill: 3D Modeller
Skill: 2D Artist
Skill: Level Designer
Skill: Great creative

Re: Rayhit

Postby ant0N » 04 May 2015, 08:05

TattieBoJangle thank you! fixed.
Sorry for my English. :)
User avatar
ant0N
Skyline Moderator
Skyline Moderator
 
Posts: 415
Joined: 02 Nov 2012, 12:49
Location: Россия, Москва
Skill: Programmer
Skill: 3D Modeller

Re: Rayhit

Postby SolarPortal » 04 May 2015, 10:19

Ok, i will test this quickly.

but the first thing i can see is that you are only returning 1 value.
it should be "hitID,posX,posY,posZ = physics.ray.....()", this might have something to do with it.

Watch out when raycasting to a cameras position as the line may look like it isn't in the center and slightly offset, but it will be lol :P Best thing to do is disable the cameras and check raycasts are hitting that way, then enable the camera :)

Edit: rayFromPointToPoint() is working, but it is not colliding. Looks like i forgot to normalise the direction before sending it through physics. Also i have flipped the direction as it was needing a negative range to point at the target.

Edit: The ID to ID was working fine but suffered the same direction not being normalised error.

I will send you a pm in 5-10 mins :)

Edit: PM Sent :)
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Rayhit

Postby Shando » 30 May 2015, 05:28

Hi ant0N,

Did you get this working correctly?

I'm basically using this:

Code: Select all
hitID, posX, posY, posZ = physics.rayFromIDToID ( rayID, objID, tgtID, 50 );


It returns the correct hitID from STATIC meshes (i.e. "PRB is Dynamic" = FALSE in PhysX Properties), but returns "-1" when "PRB is Dynamic" = TRUE?

Thanks

Shando
Ryzen 7 4800H 16GB GTX1650 Win 11 64
Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: Rayhit

Postby ant0N » 30 May 2015, 08:09

Hi, Shando! :)
rayFromIDToID works well.
with rayFromEntityToEntity and rayFromPointToPoint there are problems, but they will be solved in next release Skyline.
Sorry for my English. :)
User avatar
ant0N
Skyline Moderator
Skyline Moderator
 
Posts: 415
Joined: 02 Nov 2012, 12:49
Location: Россия, Москва
Skill: Programmer
Skill: 3D Modeller

Re: Rayhit

Postby Shando » 30 May 2015, 13:39

rayFromIDToID works well.


Unfortunately it returns -1 for me when using a moving entity :?

Am I calling it correctly, with this:

Code: Select all
hitID, posX, posY, posZ = physics.rayFromIDToID ( rayID, objID, tgtID, distance );


Shando
Ryzen 7 4800H 16GB GTX1650 Win 11 64
Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: Rayhit

Postby SolarPortal » 19 Jun 2015, 16:38

@Shando, are you using the latest patch release i sent you before we went away? or is this the actual 0.9.5 release exe.

As we fixed this problem for antON in a patch that will be released in the next versions.
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: Rayhit

Postby Shando » 20 Jun 2015, 01:39

@SP, I'm using the latest version you sent me :)
Ryzen 7 4800H 16GB GTX1650 Win 11 64
Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer


Return to Fixed Bugs

Who is online

Users browsing this forum: No registered users and 10 guests