pointAt
457
Parameters
intH
Required. An integer that specifies the horizontal coordinate of the point.
intV
Required. An integer that specifies the vertical coordinate of the point.
Example
This statement sets the variable
lastLocation
to the point (250, 400):
-- Lingo syntax
lastLocation = point(250, 400)
// JavaScript syntax
var lastLocation = point(250, 400);
This statement adds 5 pixels to the horizontal coordinate of the point assigned to the variable
myPoint
:
-- Lingo syntax
myPoint.locH = myPoint.locH + 5
// JavaScript syntax
myPoint.locH = myPoint.locH + 5;
In Lingo only, the following statements set a sprite’s Stage coordinates to
mouseH
and
mouseV
plus
10 pixels. The two statements are equivalent.
-- Lingo syntax
sprite(_mouse.clickOn).loc = point(_mouse.mouseH, _mouse.mouseV) \
+ point(10, 10)
sprite(_mouse.clickOn).loc = _mouse.mo 10
See also
locH
,
locV
pointAt
Usage
member(
whichCastmember
).model(
whichModel
).pointAt\
(
vectorPosition
{,
vectorUp
})
member(
whichCastmember
).camera(
whichCamera
).pointAt\
(
vectorPosition
{,
vectorUp
})
member(
whichCastmember
).light(
whichLight
).pointAt\
(
vectorPosition
{,
vectorUp
})
member(
whichCastmember
).group(
whichGroup
).pointAt\
(
vectorPosition
{,
vectorUp
})
Description
3D command; rotates the referenced object so that its forward direction vector points at a
specified world relative position, then it rotates the referenced object to point it’s up direction
vector in the direction hinted at by a specified relative vector.
The object’s front and up direction vectors are defined by the object’s
pointAtOrientation
property.
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...