diego1996 / gamekit

Automatically exported from code.google.com/p/gamekit
0 stars 0 forks source link

new LogicBrick / LuaScript - Features #217

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
here some new runtime-lua-script commands that might be useful:

LogicBrick / Script:

gkActionActuator
FIX: In blender start/end are frames, but using setStart/End in c++ was in 
time-units. gkLogicBrickCoverter calculated the frames in setStart/End to 
Seconds which is now done in where it should in setStart/End. The getter also 
return now in frames. Hope that doesn't break anyone's code, but imo that need 
to be this way. Other suggestions?

methods for script-calls moved from PRIVATE to PUBLIC:
doInit()
playAction()
stopAction()

new methods:
-bool isActionEnded()

new methods for underlying animation:
-void setAnimationPosition(pos in time)
-gkScalar getAnimationPosition()
-gkScalar getAnimationLength()

SCRIPT: gsActionActuator: (see attached test-file)
new methods:
-getAnimPosition()
-getAnimLength()
-setAnimPostion(float)
-isActionEnded()
-reInit() (call tha acutator again with current values
-play() start actuator (from start-frame)
-stop() stop at once

gsScene:
new methods:
- gsCamera* getMainCamera()
- gsRay* getPickRay() : (see attached test-file) returns a ray starting from 
the camera-position through the mouse-coords

Original issue reported on code.google.com by thomas.t...@googlemail.com on 28 Feb 2012 at 5:04

Attachments:

GoogleCodeExporter commented 9 years ago
Already integrated

Original comment by thomas.t...@googlemail.com on 31 Mar 2012 at 2:43