Arska134 Posted September 24, 2012 Share Posted September 24, 2012 Title explains everything. I need to raycast prevent to pick one type of entities. (player gun entity etc..). Raycast should go trough those entities. Quote Windows 7 Ultimate | Intel Core i7 930 @ 2.80 ghz | Nvidia GeForce GTX 560 | Leadwerks 2.5 | Blitzmax Link to comment Share on other sites More sharing options...
Josh Posted September 24, 2012 Share Posted September 24, 2012 There's a collision type argument you can use to do this. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
ParaToxic Posted September 24, 2012 Share Posted September 24, 2012 You can easylie set some keys for your entities ( for example for the Gun you create a lua and Set a key with the name "Entity_Type" and the value "Weapon_Gun" or something like that ) and then pick the entity in the scene and look if it is a Weapon_Gun or not. Quote Link to comment Share on other sites More sharing options...
Josh Posted September 24, 2012 Share Posted September 24, 2012 Yes, but I think he wants the raycast to go through undesired entities and hit the ones he wants. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Arska134 Posted September 24, 2012 Author Share Posted September 24, 2012 But when i use collisiontype parameter i can only choose one type of entities? Quote Windows 7 Ultimate | Intel Core i7 930 @ 2.80 ghz | Nvidia GeForce GTX 560 | Leadwerks 2.5 | Blitzmax Link to comment Share on other sites More sharing options...
Marleys Ghost Posted September 24, 2012 Share Posted September 24, 2012 http://www.leadwerks.com/files/Tutorials/CPP/Collision_And_Raycasting.pdf page 12 ... 1 Quote AMD Bulldozer FX-4 Quad Core 4100 Black Edition 2 x 4GB DDR3 1333Mhz Memory Gigabyte GeForce GTX 550 Ti OC 1024MB GDDR5 Windows 7 Home 64 bit BlitzMax 1.50 • Lua 5.1 • MaxGUI 1.41 • UU3D Pro • MessiahStudio Pro • Silo Pro 3D Coat • ShaderMap Pro • Hexagon 2 • Photoshop, Gimp & Paint.NET LE 2.5/3.4 • Skyline • UE4 • CE3 SDK • Unity 5 • Esenthel Engine 2.0 Marleys Ghost's YouTube Channel • Marleys Ghost's Blog "I used to be alive like you .... then I took an arrow to the head" Link to comment Share on other sites More sharing options...
Pixel Perfect Posted September 24, 2012 Share Posted September 24, 2012 I use a callback where you can use whatever type of logic you want to get it to return or continue based on the items it detects Quote Intel Core i5 2.66 GHz, Asus P7P55D, 8Gb DDR3 RAM, GTX460 1Gb DDR5, Windows 7 (x64), LE Editor, GMax, 3DWS, UU3D Pro, Texture Maker Pro, Shader Map Pro. Development language: C/C++ Link to comment Share on other sites More sharing options...
Recommended Posts
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.