About: Script Overview   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : dbkwik.org associated with source dataset(s)

The following script functions are a list of methods from SP3.6. Some of them may not be accessible in prior SP versions. * if channel is playing, false if non playing. * maxChannels(numeric) - (since 3.6.6) Maximum sound channel. Default is 8. * stopSound(channel) (since 3.5) - stop sound. The sound channel must be in numeric form, like 0, 1, or 2... * stopAllSounds (since 3.5) - stop all sounds. * setSoundPosition(channel, position, volume = 5.0) - Set 3d position to the sound channel. This will control volume and left & right speaker distribution. * setSoundPosition2(channel, pos, max_hearing_range = 1000) (since 3.3) - Set 3d position to a sound channel. This will control volume and left & right speaker distribution. * joy(name) - get joy value. Valid names a

AttributesValues
rdfs:label
  • Script Overview
rdfs:comment
  • The following script functions are a list of methods from SP3.6. Some of them may not be accessible in prior SP versions. * if channel is playing, false if non playing. * maxChannels(numeric) - (since 3.6.6) Maximum sound channel. Default is 8. * stopSound(channel) (since 3.5) - stop sound. The sound channel must be in numeric form, like 0, 1, or 2... * stopAllSounds (since 3.5) - stop all sounds. * setSoundPosition(channel, position, volume = 5.0) - Set 3d position to the sound channel. This will control volume and left & right speaker distribution. * setSoundPosition2(channel, pos, max_hearing_range = 1000) (since 3.3) - Set 3d position to a sound channel. This will control volume and left & right speaker distribution. * joy(name) - get joy value. Valid names a
dcterms:subject
abstract
  • The following script functions are a list of methods from SP3.6. Some of them may not be accessible in prior SP versions. * if channel is playing, false if non playing. * maxChannels(numeric) - (since 3.6.6) Maximum sound channel. Default is 8. * stopSound(channel) (since 3.5) - stop sound. The sound channel must be in numeric form, like 0, 1, or 2... * stopAllSounds (since 3.5) - stop all sounds. * setSoundPosition(channel, position, volume = 5.0) - Set 3d position to the sound channel. This will control volume and left & right speaker distribution. * setSoundPosition2(channel, pos, max_hearing_range = 1000) (since 3.3) - Set 3d position to a sound channel. This will control volume and left & right speaker distribution. * joy(name) - get joy value. Valid names are leftx, lefty, rightx, and righty. Returns value between 0.0 and 1.0. * joybutton(name) - get joy button value. Valid names are a, b, x, y, lb, rb, back, start, leftb, and rightb. Returns 1.0 if down, or 0.0 if up. * setSphereAxes(left-right, up-down) - (since 3.6) Set head rotation for fps type games. Return: [x,y,z] array. Z axis is 360°, X axis is -80° +80° rotated. onStart{ @head = simulation.findBody("name") } onUpdate{ mouse = getMouseAxes head_axes = setSphereAxes(mouse.x, mouse.y) @head.setTransformation(3dPoint, head_axes.x, head_axes.y, head_axes.z) } OR onUpdate{ head_axes = setSphereAxes(key('left')-key('right'), key('up')-key('down')) @head.setTransformation(3dPoint, head_axes.x, head_axes.y, head_axes.z) } * getFps - (since 3.6) Get simulation frame per second. Returns numeric. * transition(new, current, speed, linear = false) - (since 3.6) Array logarithm only; Number logarithm- or linear: onStart{ @new_number = @number = 0 } onUpdate{ @new_number = 35 if key('down') == 1 @new_number = -14 if key('up') == 1 @number = transition(@new_number, @number, 10, true/false) } * findEntityByIndex(index) - (3.7) alias getEntity(index) - (since 3.6) Return: entity * findEntityById(id) - (since 3.7) Return: entity * findGroupByName(name) - (since 3.7) Find just group/component by name. Return: entity. * findLayer(value) - (3.7) alias getLayer(value) - (since 3.6) value: index or name of layer. Return: layer * visibleEntity(index, state) - (since 3.6.8) * visibleLayer(value, state) - (since 3.6.8) value: index- or name of layer. * visibility(value, state) - (since 3.7) value: entity, layer or body. state: true/false boolean. * newVector(value) - (since 3.6) Returns: Geom::Vector3d.new * newPoint(value) - (since 3.6) Returns: Geom::Point3d.new * os_windows? - (since 3.6.1) Returns true/false boolean * hiddenControllerPanel - (since 3.6.2) Hide the Joint Controller Panel * oscillator(number) - (since 3.6.2) For coding. Oscillates a numeric value between 0.0 and 1.0 * every(allocation, count = 0) - For coding. Source: frame % allocation == count Returns: 0.0 or 1.0 * raytest(point, vector) - (since 3.6.1) Return: Sketchup.active_model.raytest(p, v) OR false if nil
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software