generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Club Houses » Let's Make a Deal
Home Search
 

Re: Any scripters/devs around here familiar with physics?

Previous Thread :: Next Thread 
airwolf12 is not online. airwolf12
Joined: 02 Mar 2009
Total Posts: 12319
13 Dec 2016 05:28 AM
I got a bit of a problem with the turret for my gunboat, and i'm all out of ideas right now.

I was using normal roblox hinges at first, but the physics were too buggy and added constraints, which work a TON better, however I still have a few problems.

The turret uses two parts for its rotation, both with a bodygyro.
One bodygyro is the gun itself, which is constrained just above the arms that are holding it,
The other is the stand which the entire gun is on.

My problem is, The gun often points backwards, even though the front of the gun faces the barrel.

Also, it for some reason rotates a LOT slower when the boat is in the water.

If you want to test it, check it out here.

https://www.roblox.com/games/573233562/testing


Report Abuse
airwolf12 is not online. airwolf12
Joined: 02 Mar 2009
Total Posts: 12319
13 Dec 2016 05:30 AM
also, i posted this to scripters, but noone's really replying there.


Report Abuse
KrillCannon is not online. KrillCannon
Joined: 23 Jul 2015
Total Posts: 19680
13 Dec 2016 05:33 AM
id help but im dumb


Report Abuse
airwolf12 is not online. airwolf12
Joined: 02 Mar 2009
Total Posts: 12319
13 Dec 2016 05:35 AM
feelsbadman


Report Abuse
Confinium is not online. Confinium
Joined: 31 Oct 2013
Total Posts: 12071
13 Dec 2016 05:38 AM
the rotation speed seems fine for me
not sure how you'll fix the gun issue, seems to be a glitch with the camera positioning or something
Report Abuse
airwolf12 is not online. airwolf12
Joined: 02 Mar 2009
Total Posts: 12319
13 Dec 2016 05:42 AM
i'll try messing around with the camera.


Report Abuse
truckfighters is online. truckfighters
Joined: 19 Aug 2014
Total Posts: 1653
13 Dec 2016 05:49 AM
this might seem weird but try this

change turretpart to whatever youre using

might be detecting camera as a part. i had this same problem with soemthing i made, and this fixed it.

local campos = workspace.CurrentCamera.CoordinateFrame.p
local hit,pos = workspace:findPartOnRay(Ray.new(campos,(Mouse.Hit.p-campos).unit*666),turretpart)
if pos then
--turret code here
end


-- colin
Report Abuse
airwolf12 is not online. airwolf12
Joined: 02 Mar 2009
Total Posts: 12319
13 Dec 2016 05:57 AM
i'll try that, thanks!


Report Abuse
airwolf12 is not online. airwolf12
Joined: 02 Mar 2009
Total Posts: 12319
13 Dec 2016 06:02 AM
unfortunately, the same issue pops up.

also just noticed, the gun works fine when aiming down, but only aiming up glitches it.


Report Abuse
truckfighters is online. truckfighters
Joined: 19 Aug 2014
Total Posts: 1653
13 Dec 2016 06:04 AM
mmmmm let me play around more

the thing i was using was something that follows your mouse but also appears there in the map

so itll be different




-- colin
Report Abuse
airwolf12 is not online. airwolf12
Joined: 02 Mar 2009
Total Posts: 12319
13 Dec 2016 06:05 AM
could be that because the camera is directly attached to the gun, that when you aim up, the camera moves up too and glitches some stuff.

really weird, i just used the mouse.hit as position for the gyro's cframe


Report Abuse
airwolf12 is not online. airwolf12
Joined: 02 Mar 2009
Total Posts: 12319
13 Dec 2016 06:10 AM
nope, that doesn't affect it either.


Report Abuse
airwolf12 is not online. airwolf12
Joined: 02 Mar 2009
Total Posts: 12319
13 Dec 2016 06:18 AM
gonna try to change the shape of the cannon, instead of it being on-top of the stand, maybe having it in front, like a tank cannon, works better.


Report Abuse
airwolf12 is not online. airwolf12
Joined: 02 Mar 2009
Total Posts: 12319
13 Dec 2016 06:24 AM
Doesn't work either o.e


Report Abuse
Parabolt is not online. Parabolt
Joined: 03 Dec 2010
Total Posts: 21576
13 Dec 2016 06:25 AM
jelly of your skills


1local robux = R$55 while wait() do robux = robux + 1 end
Report Abuse
Destrvction is not online. Destrvction
Joined: 07 Jun 2014
Total Posts: 5180
13 Dec 2016 06:34 AM
Maybe it detects the camera as a part?
Report Abuse
airwolf12 is not online. airwolf12
Joined: 02 Mar 2009
Total Posts: 12319
13 Dec 2016 06:43 AM
yeah thats what truck thought too


Report Abuse
airwolf12 is not online. airwolf12
Joined: 02 Mar 2009
Total Posts: 12319
13 Dec 2016 07:04 AM
herpabump


Report Abuse
Silky_Love is not online. Silky_Love
Joined: 01 Jul 2012
Total Posts: 1557
13 Dec 2016 07:17 AM
Aren't sentries automatic and turrets manually activated and used?

waaaat
Report Abuse
airwolf12 is not online. airwolf12
Joined: 02 Mar 2009
Total Posts: 12319
13 Dec 2016 07:17 AM
ye, it's manual


Report Abuse
airwolf12 is not online. airwolf12
Joined: 02 Mar 2009
Total Posts: 12319
13 Dec 2016 08:33 AM
bumpzzz


Report Abuse
airwolf12 is not online. airwolf12
Joined: 02 Mar 2009
Total Posts: 12319
13 Dec 2016 09:04 AM
It's over, it's done.

It had something to do with the allignment of the mainpart the gun was standing on.

Made a new stand with better alligned parts, and now it works perfectly.

Now time to make the gun, TV missile, effects, sounds and UI work.



Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Let's Make a Deal
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image