HELP: What did I collide with?

There are no stupid questions, just stupid answers.
2 posts Page 1 of 1
Jason Campbell
Posts: 270
Joined: Fri Feb 13, 2015 2:51 am
 
by Jason Campbell » Sat Apr 21, 2018 12:48 am
Perhaps you could use a Raycast with TypeMasks? This link covers a fake melee attack but perhaps the basic idea could be applied, without the weapon of course.
https://www.garagegames.com/community/blogs/view/20273
LukasPJ
Site Admin
Posts: 388
Joined: Tue Feb 03, 2015 7:25 pm
 
by LukasPJ » Sat Apr 21, 2018 7:08 am
The information should be available.
Around the bottom of this wiki tutorial, you can find an example of a onCollision function :
http://wiki.torque3d.org/coincollection:introduction

Make sure you are using it correctly. That said, can you share the error message, console.log and /or the script that is failing?
2 posts Page 1 of 1

Who is online

Users browsing this forum: Baidu [Spider] and 2 guests