Subliminal
Bugsmashers

BUGSMASHERS! Episode 25

18 May 201600:09:06178 linesWatch on YouTube ↗

Transcript — every row opens the video at that moment

  1. 00:00:09

    hey everyone welcome to bug Smashers I got nothing witty like I said I got nothing witty you're going to use that aren't you let's start box smashes hey everyone we have a fun little bug here um I have a test Hornet which I use and abuse to put all sorts of items on as you can see I threw a air lock on the the wing because why not um this is mostly so I could test uh the interaction system and we got a bug in um that when items get removed off ships like this air loock it has no physics and as you can see here um this air lock

  2. 00:01:00

    is attached to my lovely Hornet and it has physics on the door however there's no physics anywhere on this air lock when it's plopped down and same thing with uh pretty much any of these other items I go in here there's physics for the seed physics for uh the weapon but not when it gets plopped down so what happens well let's snap into the code uh so let me open up uh the Fun open up the item where are you item somewhere hiding visual assist does not ah there

  3. 00:01:53

    you are all right so um our Legacy item which is this guy and our new items um they have a physics controller where are you there you are uh we have a physics controller which is a separate component that handles the physics for um this item uh both the Legacy item which is this guy right here and our new items both go and use this guy and we have a call back for physicalizing we were just there let's go find you uh we

  4. 00:02:41

    want the physicalization mode going through the infun mess aha thisal out and about all right so here's our fun physicalization function so um to get this item working uh with our physicalized component we have to do basically a call back to do special methods so when we physicalize we'll tell our physics controller this lovely guy uh to basically physicalize our entity and then it will do a call back to come back to the item because the item has to do some special love um and whenever we physicalized we have to

  5. 00:03:30

    define a slot basically we have an entity and it could have multiple slots and each slot could have uh a character or it could have some geometry we could have you know um a wallet geometry and a phone and they both belong to this entity and each one would be into a slot um you could have multiple slots for the entity active at one time or you could have one at a time for example the Legacy items if it's um we could switch between an auxiliary or third person geometry we mostly stick with third person but auxiliaries for like attachments uh you could do things like if you're in first person you have switch to this geometry if you're in first person you switch to this geometry but either way we have to define a slot

  6. 00:04:19

    to physicalize and the item and old items they have one slot which they physicalize on but they also have a another physicalization slot for the interaction system which is these fun little proxies right there and unfortunately we have to physicalize a bunch of slots so rather than sending in slot a specific number we could send in a a negative one um if we go to the physics controller this is what we use for the new items and as you can see if it's a rigid body we pass in negative one saying physic lies every single slot that you have and fortunately um our physics controller is

  7. 00:05:06

    the top level and the physics proxy is our bottom level and then we have super super low physics so our entity physics controller physics proxy and physics our entity tells the physics controller I want to physicalize it does a call back and then then eventually goes to the physics proxy to set up a whole bunch of crazy parameters and then finally gets to physics and our guy has as physics it's CR cray and basically um our item gets here goes to the physics controller we say slot negative one it gets to physics proxy and we land here um when we have negative 1 we have to go through all the physics slots and add it to physics and say hey make this thing have physics but unfortunately um this in this Pam when

  8. 00:05:57

    we pass in slot negative one uh we also pass in this pram in here and when we add the slot geometry it gets the param if it's a character or physics it checks to see if the slot's negative one but we set an NE one because we want everything to go so we have to do a little trick where we say r equal to the current slot and then we'll reset it so um since everything unfortunately uses the prams uh we'll just say hey just use we'll assign the correct slot so everything below the physics proxy gets

  9. 00:06:45

    passed incorrectly and then when we go to the next slot we do the same thing over and over and over again and me build this guy so now um my super duper wallet and my super duper phone both have physics instead of going oh my gosh we're slot negative one abort woo because this guy doesn't want to do physics all right as this compiles we are going to see the awesome result best LOD all right we're back into the editor let's draw our physics haha we now have physics when we plop down this door so if I were to hop

  10. 00:07:34

    in the game My Ship goes crazy but since I have physics I can now open it well I can at least shoot it I guess the animation's broke all fun had open up that door oh that's great oh that's another bug for another time as you saw we had a fun little physics issue where if we had uh an item and we attached it to yes this is a ship this pretend it's my air lock attached to a ship it has physics awesome but soon as we detach it we don't have physics anymore uh the problem was with uh the good old lowlevel component when we try

  11. 00:08:24

    to physicalize you know all the slots we send in negative one but it was a boarding out because negative 1's invalid so we just had to make sure that when it get through each slot we set the appropriate value for the slot everything physicalized and now our apple is a real boy hope you guys enjoyed see you guys next time cheers

Transcript from YouTube’s automatic captions — punctuation and Star Citizen jargon are approximate. The video itself is hosted by CIG on the official channel.

Squadron 42

LiveSQ42 Launch Subathon

$2,094of $3,000

Getting Sub to Manchester for the Squadron 42 launch

Next giveawaySubscriber Store pick
$6.27to go