3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: can skinmesh have collision detection? And how?  (Read 1044 times)

« on: December 10, 2012, 01:54:46 AM »
 ;D
« Reply #1 on: December 10, 2012, 04:45:28 AM »
No just attach it to a rigidbody like normal

fourdee

« Reply #2 on: December 10, 2012, 09:44:55 AM »
;D

Short answer = yes
long answer = lots of scripting, knowledge and 100 cups of coffee ready to go.

In my Tr0n setup, i only use one RB (the track), everything else is skinmeshed. To detect collisions, i use vectorlength results from the scanners and apply that to the moving object within a threshold.

My only reason for doing this was failure of the standard collision physics system built into 3d-rad. I could only achieve a speed 1.5 (150km/h ish) before collision failures occured. My new system allows for 6.5 speed without any issues.

You can effectively result the force of a collision by using the scan length results against timedelta.

If your willing to put the time in, scripting your own collision system for skinmeshs is possible. Customizing this system for your game will also be key to optimizing the performance.
« Reply #3 on: December 10, 2012, 09:58:08 AM »
no. they don't collide.

http://www.youtube.com/watch?v=poJKgKjlHKM
Roblox username: COMMANDERREX12345345
« Reply #4 on: December 10, 2012, 11:01:52 AM »
Like Fourdee said, It's possible with a lot of scripting. It would be simpler to use a RigidBody and a SkinMesh.
« Reply #5 on: December 10, 2012, 12:13:23 PM »
Fourdee has my vote for the right answer here...

a lil scripting could be used to implement spherical collision responses by using distances to detect when objects are within a certain distance of each other...

reverse look at logic,  along with using the velocity of the object could be used to implement the object reactions...

you may also be able to do some of this without any scripting using proximity and force objects...

--Mike
« Reply #6 on: December 11, 2012, 04:46:10 AM »
I'd say no.

Yeah, you can fake the effect by using a lot of script, but the meshes still don't really collide.

Just use a RigidBody and link the SkinMesh to it.
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #7 on: December 11, 2012, 05:47:09 AM »
..
« Last Edit: November 15, 2013, 05:02:22 AM by Leonopteryx »
Using 3D Rad 7.22
« Reply #8 on: December 11, 2012, 09:35:54 AM »
Oh, sorry Leon. I must have missed a few lines.  :P

You're right, of course.
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
Pages: [1]