View previous topic :: View next topic |
Author |
Message |
LuigiFan Beginner Poster
Joined: 26 May 2008 Posts: 11
|
Posted: Wed May 28, 2008 3:35 am Post subject: part.Position = otherpart.CFrame.lookVector? |
|
|
I've wanted to know how to affect the position of a brick through the way a brick is facing. You can see this by checking out Stealth Pilot's community, his pets stay at a position depending on the way you face. Just curious as to how it works. _________________
http://www.roblox.com/User.aspx?id=31132 |
|
Back to top |
|
|
Nasadaws Delta Corp Moderator
Joined: 27 Mar 2008 Posts: 484 Location: Under you bed Where else?
|
Posted: Wed May 28, 2008 6:11 am Post subject: |
|
|
Rocket Propulsion? With the cartoon factor right to the top. _________________ Nasadaws Attack Spammer: Hits 100 Damage with his Ban Hama.
Spammer: Flees.
I R NOE WELDIN ME BAN HAMAR. |
|
Back to top |
|
|
kiddietron Site Admin
Joined: 06 Feb 2008 Posts: 797 Location: On Roblox
|
Posted: Wed May 28, 2008 6:34 pm Post subject: |
|
|
If you put in BodyPosition then you can move it to the position right? But if you put in BodyGyro you can change the way it's facing. I think if you do something like
BodyGyro.cframe = Person.Torso.CFrame.lookvector it'll work. _________________ �Kiddietron
�Phailing at making a signature
Free Money here just sign up and click away.
http://bux.to/?r=kiddietron
Spam is for noobs.
|
|
Back to top |
|
|
LuigiFan Beginner Poster
Joined: 26 May 2008 Posts: 11
|
Posted: Fri May 30, 2008 6:16 am Post subject: |
|
|
Well, I know that, I mean like ALWAYS having a BodyPosition brick to your left no matter which way you stand. Normally if you try, the brick just stays dependent on the x axis.
e.g.: You make a floating brick that follows you -5x from your head making it behind your head. You turn and face the other position and it's all of a sudden behind you instead of in front.
If you do this with one of Stealth's pets however, it will always be behind you. _________________
http://www.roblox.com/User.aspx?id=31132 |
|
Back to top |
|
|
kiddietron Site Admin
Joined: 06 Feb 2008 Posts: 797 Location: On Roblox
|
Posted: Fri May 30, 2008 6:44 pm Post subject: |
|
|
Ah yes, I have this as well. Back on my account Zephyrus. I have an AI testing. The AI bot will follow you when you use the follow control. But it will stay behind you not to your left or front.
cfram = Torso.CFrame
newcfram = cfram * CFrame.new(-2, 0, -4)
That's how I do it. Something like that. _________________ �Kiddietron
�Phailing at making a signature
Free Money here just sign up and click away.
http://bux.to/?r=kiddietron
Spam is for noobs.
|
|
Back to top |
|
|
LuigiFan Beginner Poster
Joined: 26 May 2008 Posts: 11
|
|
Back to top |
|
|
|