Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - LordHorusNL

Pages: 1 [2]
PlayMaker Help / Get Action Event?[SOLVED]
« on: June 24, 2017, 07:49:14 AM »
Hey guys, is it currently possible to find out which specific action in a state was the one that triggered a transition event?

I have one state that checks if a whole list of variables has changed and if any of them change i want to fire off the FINISHED event, however in the next state i need to know which specific action triggered the event so that i can know which variable i need to change.

So that when i'm checking 50 variables in one state, i don't also need 50 different transitions :P

PlayMaker Help / Bullet transform position
« on: March 18, 2017, 05:29:59 PM »
Hey guys, i'm trying to recreate this code in playmaker.

I want to fire a bullet and use raycast to register any impact. I store an old position and a new position every frame. The old position is the current position of the bullet and the new position is the position it would reach if the raycast doesn't hit anything.

Bullet {
    Update {
        newPos += speed * transform.forward * Time.deltaTime;

        direction = newPos - oldPos;
        distance = direction.magnitude;

        if (Raycast(oldPos, direction, distance)) {
        else {
            oldPos = transform.position;
            transform.position = newPos;

This is what i have, minus the raycast. I just need to get the bullet working right.
I've already got the distance working.

Speed "Float" == 300 (or any speed)

Get Position == oldPos
Get Time Info == time.deltaTime
Float Operator == Speed, time.deltaTime, Multiply = newPos
Translate == set to newPos

Math is not really my thing so anybody see the obvious mistakes i'm making?

VR Help / Grabbing object in VR and velocity?
« on: January 10, 2017, 12:34:47 PM »
Hey guys i'm working on a pickup/interaction system for VR that allows you to pickup and throw objects, this works great when stationary.

However when the camerarig is moving and i drop the object, it does not fall straight down, but falls back from where the player is comming. So it does not take the camerarig velocity into consideration.

I have this and it works great:

Get controller position and velocity
Set parent
Use gravity
Set rigid body constraints
Set velocity
Set angular velocity

Can anybody tell me how i would get the object to fall straight down when moving?

VR Help / HTC Vive Gun slide
« on: November 10, 2016, 02:28:43 PM »
Hey guys, i'm trying to make a two handed gun with playmaker similar to onward/H3ver. But i can't seem to figure out how to move the slide/bolt with the controller.

Does anybody have any tips or suggestion on how i could achieve this?

I already have a barebone two handed setup, using the bow template from Sebaslive's toolkit.

Pages: 1 [2]