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 » Game Creation and Development » Scripters
Home Search
 

Re: WantBodyVelocityToDependOnMouse LcationOnScreenInsteadOfVec3

Previous Thread :: Next Thread 
Born2Script is not online. Born2Script
Joined: 23 Jul 2013
Total Posts: 2670
12 Sep 2016 04:34 PM
I need this line of code:

BodyVelocity.Velocity = (torso.Poisition - mouse.Hit.p)

to depend on the Mouse's location on screen instead of the 3D space. This is to avoid the torso from going backwards (while pointing on something high on the y axis) when the mouse is on the upper side of the screen.

How can I achieve that? Thanks.


Report Abuse
Born2Script is not online. Born2Script
Joined: 23 Jul 2013
Total Posts: 2670
12 Sep 2016 05:04 PM
Bump


Report Abuse
vivivio is not online. vivivio
Joined: 23 Jan 2012
Total Posts: 707
12 Sep 2016 05:05 PM
space bar
Report Abuse
Egzekiel is online. Egzekiel
Joined: 10 Jan 2011
Total Posts: 1079
12 Sep 2016 05:19 PM
int X [readonly]
The X component of the position of the Mouse. This is the position of the Mouse on the screen.

int Y [readonly]
The Y component of the position of the Mouse. This is the position of the Mouse on the screen.




Report Abuse
GGGGG14 is not online. GGGGG14
Joined: 29 Jan 2012
Total Posts: 25344
12 Sep 2016 06:22 PM
Mouse.X, Mouse.Y & WorldToScreenPoint might be some helpful tips... there's also ScreenToWorldPoint I believe.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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