VBotGirlWrapper
- class VBotGirl.VBotGirlWrapper(object: Object)
Bases:
Object- class RotationDirection
Bases:
object- Clockwise: Any = Ellipsis
Clockwise
- Counterclockwise: Any = Ellipsis
Counterclockwise
- class MovementDirection
Bases:
object- Forward: Any = Ellipsis
Forward
- Backward: Any = Ellipsis
Backward
- Left: Any = Ellipsis
Left
- Right: Any = Ellipsis
Right
- class TextBubbleHideType
Bases:
object- Automatic: Any = Ellipsis
Automatic
- Never: Any = Ellipsis
Never
- SetMaxTraversableSlope(slope: float) None
Set max traversable slope angle
Example:
instance.SetMaxTraversableSlope(0)
- SetMaxStepHeight(slope: float) None
Set max step height
Example:
instance.SetMaxStepHeight(0)
- SetMinObjectDistance(objectDistance: float) None
Set object stop distance
Example:
instance.SetMinObjectDistance(0)
- async RotateByAngle(angle: float, rotationDirection: int, time: float) None
Rotate for [angle] degrees [rotationDirection] in [time] sec
- Parameters:
(int) (rotationDirection) –
value from the list:
VBotGirlWrapper.RotationDirection.Clockwise
VBotGirlWrapper.RotationDirection.Counterclockwise
Example:
await instance.RotateByAngle(0, VBotGirlWrapper.RotationDirection.Clockwise, 0)
- MoveInfinite(movementDirection: int, movementPace: int) None
Move [movementDirection] at [movementPace] pace until stopped
- Parameters:
(int) (movementPace) –
value from the list:
VBotGirlWrapper.MovementDirection.Forward
VBotGirlWrapper.MovementDirection.Backward
VBotGirlWrapper.MovementDirection.Left
VBotGirlWrapper.MovementDirection.Right
(int) –
value from the list:
VBotGirlWrapper.MovementPace.Walk
VBotGirlWrapper.MovementPace.Run
Example:
instance.MoveInfinite(VBotGirlWrapper.MovementDirection.Forward, VBotGirlWrapper.MovementPace.Walk)
- async MoveByMeters(movementDirection: int, movementPace: int, distance: float) None
Move [movementDirection] at [movementPace] pace for [distance] m
- Parameters:
(int) (movementPace) –
value from the list:
VBotGirlWrapper.MovementDirection.Forward
VBotGirlWrapper.MovementDirection.Backward
VBotGirlWrapper.MovementDirection.Left
VBotGirlWrapper.MovementDirection.Right
(int) –
value from the list:
VBotGirlWrapper.MovementPace.Walk
VBotGirlWrapper.MovementPace.Run
Example:
await instance.MoveByMeters(VBotGirlWrapper.MovementDirection.Forward, VBotGirlWrapper.MovementPace.Walk, 0)
- async MoveToObject(movementPace: int, wrapper: Object) None
Move at [movementPace] pace towards object [wrapper]
- Parameters:
(int) (movementPace) –
value from the list:
VBotGirlWrapper.MovementPace.Walk
VBotGirlWrapper.MovementPace.Run
(Object) (wrapper) – scene object
Example:
await instance.MoveToObject(VBotGirlWrapper.MovementPace.Walk, sceneObject)
- async MoveAlongPath(movementPace: int, points: Any) None
Move at [movementPace] pace along the path [points]
- Parameters:
(int) (movementPace) –
value from the list:
VBotGirlWrapper.MovementPace.Walk
VBotGirlWrapper.MovementPace.Run
Example:
await instance.MoveAlongPath(VBotGirlWrapper.MovementPace.Walk, 0)
- PausePath() None
Pause movement along the path
Example:
instance.PausePath()
- ContinuePath() None
Continue movement along the path
Example:
instance.ContinuePath()
- StopMovement() None
Stop motion
Example:
instance.StopMovement()
- SetShowTextBubbleHideType(hideType: int) None
Set text bubble hide type
- Parameters:
(int) (hideType) –
value from the list:
VBotGirlWrapper.TextBubbleHideType.Automatic
VBotGirlWrapper.TextBubbleHideType.Never
Example:
instance.SetShowTextBubbleHideType(VBotGirlWrapper.TextBubbleHideType.Automatic)
- SetShowTextBubble(show: bool) None
Set text bubble enabled
Example:
instance.SetShowTextBubble(False)
- SayText(text: str) None
Say
Example:
instance.SayText("text")
- SayTextWith(header: str, text: str) None
Say header: [header] text: [text]
Example:
instance.SayTextWith("text", "text")
- StopSpeaking() None
Stop speaking
Example:
instance.StopSpeaking()
- AddBotTargetReachedHandler(handler: Callable[[Object, Object], CoroutineType]) None
Target object reached
- Parameters:
handler –
Asynchronous handler function with signature:
target (Object): scene object
sender (Object): the object that triggered the event
Example:
async def OnBotTargetReached(target, sender): pass instance.AddBotTargetReachedHandler(OnBotTargetReached)
- AddBotPathPointReachedHandler(handler: Callable[[int, Object, Object], CoroutineType]) None
Path point reached
- Parameters:
handler –
Asynchronous handler function with signature:
id (int): id
point (Object): scene object
sender (Object): the object that triggered the event
Example:
async def OnBotPathPointReached(id, point, sender): pass instance.AddBotPathPointReachedHandler(OnBotPathPointReached)
- AddSpeechCompletedHandler(handler: Callable[[Object], CoroutineType]) None
On speech completed
- Parameters:
handler –
Asynchronous handler function with signature:
sender (Object): the object that triggered the event
Example:
async def OnSpeechCompleted(sender): pass instance.AddSpeechCompletedHandler(OnSpeechCompleted)