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.
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...