I haven’t tried your script so this is just a guess, but could it be
a problem that your “refnode” is defined “within”
the “anyFIXEDrefframe MachineRef”? Do the “AnyRefNode Force” move
with respect to “AnyFixedRefFrame MachineRef”?
/jokke
— In anyscript@yahoogroups.com, “woote77” <woote77@…> wrote:
>
> Hello everyone…
>
> I’m taewookim from korea
>
> I have a simple problem but i can’t solve it. PLZ help me~
>
> I want to set applied force at local coordinate. but my script set
> force at global coordinate. here is script. give me some advice…
>
>
>
> AnyForce3D Force =
> {
> Flocal = {0, 0, -100};
> AnyRefNode &force =
> Main.Model.EnvironmentModel.MachineRef.RightArm.Mainframe.Force;
> };
>
>
>
> AnyDrawVector DrawSupport1 = {
> AnyRefNode &Force =.Force.force;
> Vec = 0.003*.Force.Flocal;
> PointAway = Off;
> DrawCoord = Off;
> Line.RGB = {0,1,0};
> Line.Thickness =0.0075;
> Line.End.Thickness = 20.0075;
> Line.End.Length = 40.0075;
> };
>
>
>
>
> AnyFixedRefFrame MachineRef = {
> Origin={0,0,0};
> AnySeg RightArm ={
> Mass=5;
> Jii={0,0,0};
> r0={0.04756,0.24134,0.17};
> AnyRefNode Mainframe={
> ARel=RotMat(-Main.angle*pi/180,y);
> AnyDrawRefFrame drw={
> ScaleXYZ={0.1,0.1,0.1};
> };
> AnyRefNode Force={
> sRel={0.3,0.8,0.1};
> AnyDrawRefFrame drw={
> ScaleXYZ={0.1,0.1,0.1};
> };
> };
> };
> };
> };
>