Can you add physics to the cloned objects? (like make it move or something?)
This forum is now archived!
- Welcome to the archive!
News:
The 3DRad community can be found at classdev.net.
- 3D Rad - Free 3D game maker - Forum >
- General Category >
- 3D Rad - User-created Sample Projects, Scripts, Tutorials >
- Beginner's Tutorial - Script Imposters
Author Topic: Beginner's Tutorial - Script Imposters (Read 4890 times)
Can you add physics to the cloned objects? (like make it move or something?)
First, moving is not physics.
But yes, you can move, scale and rotate an imposter.
Using rigidbody imposters, you can even make them collide.
I got these questions about scripted imposters.
Can imposter's be detected using iObjectScan?
If so how would I do it?
Thanks
--PlayDasher--
Can imposter's be detected using iObjectScan?
If so how would I do it?
Thanks
--PlayDasher--
ya know... before you guys ask these **** ***** questions... have ya ever tried doing any of these things first...
before you toss your hands to heaven and give up and ask someone to do your thinking for ya... has any of ya even tried to figure these things out first...
don't get me wrong... i aint jumpin' on anyone here, but it would seem like trying to do it first would make jack a smarter boy than by asking someone how to do it...
problem solving... that's the key to learning how to program... or how to do anything as a matter of fact...
that last question... first do an object scan of a regular object... then make a few imposters and try to scan them...
geeez... what's so hard about doin that yourself...
--Mike
before you toss your hands to heaven and give up and ask someone to do your thinking for ya... has any of ya even tried to figure these things out first...
don't get me wrong... i aint jumpin' on anyone here, but it would seem like trying to do it first would make jack a smarter boy than by asking someone how to do it...
problem solving... that's the key to learning how to program... or how to do anything as a matter of fact...
that last question... first do an object scan of a regular object... then make a few imposters and try to scan them...
geeez... what's so hard about doin that yourself...
--Mike
Mike, I consider this question slightly more advanced and therefore I can accept it. You might have exaggerated a little bit.
PlayDasher, no, you can't. The iObjectScan() cannot return an ID and nor can the actual scanner object.
PlayDasher, no, you can't. The iObjectScan() cannot return an ID and nor can the actual scanner object.
Thanks Robert.
Mike: I wanted to try but i didn't know how. Usually to use iObjectScan i would have to specify an OBJ_ id but when create an imposer i was unsure as what to put in this obj id that would represent the impostered RB, so i thought that the forum would be the best place to go for help...
Mike: I wanted to try but i didn't know how. Usually to use iObjectScan i would have to specify an OBJ_ id but when create an imposer i was unsure as what to put in this obj id that would represent the impostered RB, so i thought that the forum would be the best place to go for help...
Quote
Usually to use iObjectScan i would have to specify an OBJ_ id
not just usually... you've gotta supply an objectID to the function all the time...
therefore, you've gotta conclude that unless you can supply an OBJECT_ID to the function, you can't use it... right???
there's the answer to your question... plain and simple...
this one you could've figured out yourself PD... you've been around 3DRAD long enough, and you've shown the ability to think and chew gum at the same time...
you're no longer a beginner, so stop acting like one...
NOW... WHAT ARE YA GONNA DO... just because someone told ya it can't be done, are ya gonna give up???
are ya gonna believe em... are ya gonna let 3DRAD show you who is boss
suppose i told ya that it could be done... are ya gonna believe me
or are ya gonna take your own future in your own hands and supply YOUR OWN ANSWERS to your questions...
--Mike
I'm sorry mike but can we end the conversation here.QuoteUsually to use iObjectScan i would have to specify an OBJ_ id
not just usually... you've gotta supply an objectID to the function all the time...
therefore, you've gotta conclude that unless you can supply an OBJECT_ID to the function, you can't use it... right???
there's the answer to your question... plain and simple...
this one you could've figured out yourself PD... you've been around 3DRAD long enough, and you've shown the ability to think and chew gum at the same time...
you're no longer a beginner, so stop acting like one...
NOW... WHAT ARE YA GONNA DO... just because someone told ya it can't be done, are ya gonna give up???
are ya gonna believe em... are ya gonna let 3DRAD show you who is boss
suppose i told ya that it could be done... are ya gonna believe me
or are ya gonna take your own future in your own hands and supply YOUR OWN ANSWERS to your questions...
--Mike
as you wish PD... good luck...
for the other people here who refuse to be defeated, and would like to know whether or not they can use ObjectScan() to detect imposters... the answer is NO...
and YES...
like Roberto said above, you need to supply an obj_ID to iObjectScan(), and since the imposters don't make one available, the function can't be used directly...
but there is a workaround... or two...
1 - the easiest one would be to use the Scanner Object (instead of the function)... it detects imposter rbs...
2 - the second approach would be to code a script that would loop around and position the rigidbody at each imposter location and do the scan for each when a shot is fired... if you don't have too many imposter targets this should work...
--Mike
for the other people here who refuse to be defeated, and would like to know whether or not they can use ObjectScan() to detect imposters... the answer is NO...
and YES...
like Roberto said above, you need to supply an obj_ID to iObjectScan(), and since the imposters don't make one available, the function can't be used directly...
but there is a workaround... or two...
1 - the easiest one would be to use the Scanner Object (instead of the function)... it detects imposter rbs...
2 - the second approach would be to code a script that would loop around and position the rigidbody at each imposter location and do the scan for each when a shot is fired... if you don't have too many imposter targets this should work...
--Mike
again... for those interested...
a lil 3dr demo that shows both methods attached...
by default it is setup to show the second approach mentioned above... using the iObjectScan() function, wrapped in another function to make it easier to use...
just look at one of the yellow fishes and left click to shoot...
you can see the rigid body moving to the position of each imposter skinmesh before the scan is performed...
to see the first approach mentioned above, disable the IOBJECTSCAN script and enable the SCANNER OBJECT script and run the project again...
--Mike
a lil 3dr demo that shows both methods attached...
by default it is setup to show the second approach mentioned above... using the iObjectScan() function, wrapped in another function to make it easier to use...
just look at one of the yellow fishes and left click to shoot...
you can see the rigid body moving to the position of each imposter skinmesh before the scan is performed...
to see the first approach mentioned above, disable the IOBJECTSCAN script and enable the SCANNER OBJECT script and run the project again...
--Mike
Pages: 1 [2]