|
FX Leakey
Registered User
Join date: 25 Nov 2007
Posts: 4
|
12-01-2007 23:20
Hi,
I am creating a door that rotates open on touch. I am using llSetRot() to rotate the door around Z-axis. The problem is that, the rotation is always around the center of the door, I'd rather it rotates around one end of the door. How can I do that? Is there a way to specify a rotation center for a primitive other than the center? Or if it possible to force the rotation around a specific vector?
Thanks,
FX
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
12-01-2007 23:49
you have to cut the door in half using the build tools
|
|
Larrie Lane
Registered User
Join date: 9 Feb 2007
Posts: 667
|
12-02-2007 00:10
You will need to cut your door like this
Create Door example Rez a prim; make its Dimensions X:0.500, Y:6.000, Z:2.00
Cut Path B:0.375 and E:0.875
This will now give you a door that appears as 0.500 thick, 3.000 Wide and 2.000 High
This is called (to my Knowledge) a single prim door, depending on which way you want your door to open you will have to rotate it 180 degrees using the Rotation from the edit menu first. I do not know if you can set this option in your script, this is how I make doors as you describe using scripts purchased in world.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
12-02-2007 01:37
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
FX Leakey
Registered User
Join date: 25 Nov 2007
Posts: 4
|
Thanks to all
12-02-2007 06:39
The path cut works perfectly!
|