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 » Scripting Helpers
Home Search
 

Re: Object Orientation in Relation to Another Object

Previous Thread :: Next Thread 
Trapper4O77 is not online. Trapper4O77
Joined: 03 Aug 2011
Total Posts: 5648
01 May 2014 06:40 PM
My question is less of a broken script question and more of a general knowledge question.

Ok, say I have a gun, and assuming it functions properly, I fire it. Whether its raycast or a projectile doesn't matter. Say the bullet hits an object and leaves a 'bullet hole'. How would I make it to where the bullet hole faces the same orientation as the object its on?

Take Daxters paintball for example. When you fire the gun it leaves a splatter where it hits on an object with the same rotation/orientation as the object.

Like this

(imgur).com/r85oKCN.png

- The Poptard -
Report Abuse
Trapper4O77 is not online. Trapper4O77
Joined: 03 Aug 2011
Total Posts: 5648
01 May 2014 06:51 PM
I'm not looking for a script, I'm looking for a way to go about making a script for this.

Like is the a property for the rotation value of a face of an object?

- The Poptard -
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
01 May 2014 06:56 PM
You can use Brick.CFrame:toObjectSpace(Projectile.CFrame) to get the orientation. You'll have to experiment with faces though.

You may also want to use pointToObjectSpace to get the Vector3 version.
Report Abuse
Trapper4O77 is not online. Trapper4O77
Joined: 03 Aug 2011
Total Posts: 5648
01 May 2014 07:03 PM
I'm going to look for wiki pages on those.

- The Poptard -
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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