- Joined
- Sep 21, 2017
- Messages
- 462
- Solutions
- 1
- Reaction score
- 237
- Points
- 55
- Favorite Pinball Machine
- Indiana Jones (Williams)
If I've created a ball in a kicker with a specific ball ID (say 42), why doesn't the xBam.BallCloseTo().ID give me 42? It only returns -1.
Is there some other property on BallInfo that returns the BallID?
Is there some other property on BallInfo that returns the BallID?
C#:
call PlungerKicker.CreateBall(,,,42)
dim kickerObjInfo: set kickerObjInfo = xBAM.FindObject(PlungerKicker.Name)
dim kickerBall: set kickerBall = xBam.BallCloseTo(kickerObjInfo.Position.X, kickerObjInfo.Position.Y, kickerObjInfo.Position.Z)
addDebugText "kickerball ID = " & kickerBall.Id
Code:
BallInfo (from xBAM.Ball or xBAM.BallCloseTo)
.Position
.x
.y
.z
.PositionGlobal
.x
.y
.z
.Velocity
.x
.y
.z
.Speed
.HitSpeed
.Exist
.ExtInt1 (can be SET or READ)
.ExtInt2 (can be SET or READ)
.ExtInt3 (can be SET or READ)
.ExtFloat1 (can be SET or READ)
.ExtFloat2 (can be SET or READ)
.ExtFloat3 (can be SET or READ)
.Id (READ only)
.Name (can be SET or READ)
.UpdateBall Red, Green, Blue, DirtTexture, ReflectionTexturem, ReflectionInPlayfield
.Opacity (only SET)
.SetBallOpacityWithEasing opacity, time, easingFunction
.ExtTimer1 (READ only)
.ExtTimer2 (READ only)
.ExtTimer3 (READ only)
.ResetExtTimer idx (idx = 1, 2, 3)
.StopExtTimer idx (idx = 1, 2, 3)
.Rotation (READ only) - current rotation along all 3 axis
.RotationSpeed (READ only) - current rotation speed/omega along all 3 axis
.SetShadowColor read, green, blue - color with 3 float values in range 0.0 - 1.0
.SetPosition x, y, z - move ball to point
.SetVelocity x, y, z
.SetOmega x, y, z
.OutVelocity (READ only)
.OutPosition (READ only)
.OutPositionGlobal (READ only)
.OutRotation (READ only)
.OutSpeed (READ only)
.SetMaterial elasticCoef, elasticCoef, staticFriction, kineticFriction
.lineardamping (read/write)
.angulardamping (read/write)
.SetAngularDamping x, y, z2yFlag
.angularSpeed (READ only)