Data Realms Fan Forums
http://forums.datarealms.com/

Need help with a rail gun.
http://forums.datarealms.com/viewtopic.php?f=1&t=45824
Page 2 of 2

Author:  Arcalane [ Thu Oct 02, 2014 9:40 am ]
Post subject:  Re: Need help with a rail gun.

It's probably something to do with the general mass of the actor plus the materials they're made of, versus the sharpness/mass/material/etc. of your own bullet. :???:

Author:  Rhyssia [ Thu Oct 02, 2014 6:35 pm ]
Post subject:  Re: Need help with a rail gun.

Well, I thought I had something with dissipate.lua but... SceneMan:CastStrengthRay won't return true for MOs

The material I'm using for the bullet is currently- (Velocity 50, Sharpness 30, Mass 5)
so... I think I should only need a sharpness of like 2?
(1/(VxM))*Structural Integrity(80)*Depth(5) = needed sharpness(1.6). (If I have that right)


-edit-
It looks like I have two more options to try. Removing/changing the "Carrier" LUA so that the pixel is created 20 pixels before impact. (Right now it creates the MOPixel at V4 for a SceneMan:CastObstacleRay which if I understand should be the last position before the ray hits the object.) or using something like...


Now is it possible to get the material an actor is made of through the LUA?

-edit2-
Because I dont really want to bump my own post unless I make a breakthrough...
So I did find out that SceneMan:GetMOIDPixel calls for 2 numbers in a (#,#) format. Im guessing that's Pos.X, and Pos.Y? I think this might be able to get me the material of the pixel... maybe. I'm pretty much throwing myself down dark alleys trying to get this to work at this point.

-edit3-
...And, it just gets me the MOID of what ever pixel it hits. So kinda useful for something. Just not this.

-edit4-
So tried throwing every little thing LUA wise I could think of, will try using an AEmitter instead of LUA and see if it's related to exactly when the MOPixel is created.

Page 2 of 2 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/